Search in sources :

Example 1 with ShowRoleGrants

use of io.prestosql.sql.tree.ShowRoleGrants in project hetu-core by openlookeng.

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(io.prestosql.sql.tree.ShowRoleGrants) Identifier(io.prestosql.sql.tree.Identifier) QueryUtil.quotedIdentifier(io.prestosql.sql.QueryUtil.quotedIdentifier) Test(org.testng.annotations.Test)

Aggregations

QueryUtil.quotedIdentifier (io.prestosql.sql.QueryUtil.quotedIdentifier)1 Identifier (io.prestosql.sql.tree.Identifier)1 ShowRoleGrants (io.prestosql.sql.tree.ShowRoleGrants)1 Test (org.testng.annotations.Test)1