Implement listRoleGrants() in Hive
@@ -1929,6 +1929,12 @@ public class HiveMetadata
return ImmutableSet.copyOf(metastore.listRoles());
}
+ @Override
+ public Set<RoleGrant> listRoleGrants(ConnectorSession session, PrestoPrincipal principal)
+ {
+ return ImmutableSet.copyOf(metastore.listRoleGrants(principal));
+ }
+
@Override
public void grantRoles(ConnectorSession session, Set<String> roles, Set<PrestoPrincipal> grantees, boolean withAdminOption, Optional<PrestoPrincipal> grantor)
{
