private List<HiveObjectPrivilege> getTableAllColumnGrants(String catName, String dbName,
                                                            String tableName, String authorizer)
          throws MetaException, NoSuchObjectException {
    return new GetListHelper<HiveObjectPrivilege>(normalizeIdentifier(catName),
            normalizeIdentifier(dbName), normalizeIdentifier(tableName), true, true) {

      @Override
      protected String describeResult() {
        return "Table column privileges.";
      }

      @Override
      protected List<HiveObjectPrivilege> getSqlResult(GetHelper<List<HiveObjectPrivilege>> ctx)
              throws MetaException {
        return directSql.getTableAllColumnGrants(catName, dbName, tblName, authorizer);
      }

      @Override
      protected List<HiveObjectPrivilege> getJdoResult(GetHelper<List<HiveObjectPrivilege>> ctx) {
        return convertTableCols(listTableAllColumnGrants(catName, dbName, tblName, authorizer));
      }
    }.run(false);
  }
Add role names of parentRoles and its parents to processedRoles
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java