use of com.facebook.presto.sql.tree.ShowCreateFunction in project presto by prestodb.
the class TestSqlParser method testShowCreateFunction.
@Test
public void testShowCreateFunction() {
assertStatement("SHOW CREATE FUNCTION x.y.z", new ShowCreateFunction(QualifiedName.of("x", "y", "z"), Optional.empty()));
assertStatement("SHOW CREATE FUNCTION x.y.z()", new ShowCreateFunction(QualifiedName.of("x", "y", "z"), Optional.of(ImmutableList.of())));
assertStatement("SHOW CREATE FUNCTION x.y.z(int, double)", new ShowCreateFunction(QualifiedName.of("x", "y", "z"), Optional.of(ImmutableList.of("int", "double"))));
}
Aggregations