@Override
  public List<HiveObjectPrivilege> listPrincipalDCGrantsAll(String principalName, PrincipalType principalType) {
    List<HiveObjectPrivilege> results = Collections.emptyList();
    boolean success = false;
    try {
      openTransaction();
      results = convertDC(listPrincipalAllDCGrant(principalName, principalType));
      success = commitTransaction();
    } catch (Exception e) {
      throw new RuntimeException(e);
    } finally {
      rollbackAndCleanup(success, null);
    }
    return results;
  }
Add role names of parentRoles and its parents to processedRoles
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java