Search in sources :

Example 1 with ShowRoleGrants

use of com.facebook.presto.sql.tree.ShowRoleGrants in project presto by prestodb.

the class TestSqlParser method testShowRoleGrants.

@Test
public void testShowRoleGrants() {
    assertStatement("SHOW ROLE GRANTS", new ShowRoleGrants(Optional.empty(), Optional.empty()));
    assertStatement("SHOW ROLE GRANTS FROM catalog", new ShowRoleGrants(Optional.of(new Identifier("catalog"))));
}
Also used : ShowRoleGrants(com.facebook.presto.sql.tree.ShowRoleGrants) Identifier(com.facebook.presto.sql.tree.Identifier) QueryUtil.quotedIdentifier(com.facebook.presto.sql.QueryUtil.quotedIdentifier) Test(org.testng.annotations.Test)

Aggregations

QueryUtil.quotedIdentifier (com.facebook.presto.sql.QueryUtil.quotedIdentifier)1 Identifier (com.facebook.presto.sql.tree.Identifier)1 ShowRoleGrants (com.facebook.presto.sql.tree.ShowRoleGrants)1 Test (org.testng.annotations.Test)1