@Test
public void generateUDFClause() {

    String clause = UDFHelper.generateUDFClause(
        "input", "func", "c1", new String[]{"c0", "c1"}, new String[]{"c0", "c1", "c2"}
    );
    assertEquals(
        "SELECT `c0`,`c2`, func(`c0`,`c1`) as `c1` FROM input",
        clause);
}