use of io.prestosql.sql.tree.ShowRoles in project hetu-core by openlookeng.
the class TestSqlParser method testShowRoles.
@Test
public void testShowRoles() {
assertStatement("SHOW ROLES", new ShowRoles(Optional.empty(), false));
assertStatement("SHOW ROLES FROM foo", new ShowRoles(Optional.of(new Identifier("foo")), false));
assertStatement("SHOW ROLES IN foo", new ShowRoles(Optional.of(new Identifier("foo")), false));
assertStatement("SHOW CURRENT ROLES", new ShowRoles(Optional.empty(), true));
assertStatement("SHOW CURRENT ROLES FROM foo", new ShowRoles(Optional.of(new Identifier("foo")), true));
assertStatement("SHOW CURRENT ROLES IN foo", new ShowRoles(Optional.of(new Identifier("foo")), true));
}
Aggregations