Search in sources :

Example 1 with ShowCreateFunction

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"))));
}
Also used : ShowCreateFunction(com.facebook.presto.sql.tree.ShowCreateFunction) Test(org.testng.annotations.Test)

Aggregations

ShowCreateFunction (com.facebook.presto.sql.tree.ShowCreateFunction)1 Test (org.testng.annotations.Test)1