@Deprecated
  default List<Partition> getPartitionsWithAuth(String catName, String dbName,
       String tblName, short maxParts, String userName, List<String> groupNames)
       throws MetaException, NoSuchObjectException, InvalidObjectException {
    return listPartitionsPsWithAuth(catName, dbName, tblName,
        new GetPartitionsArgs.GetPartitionsArgsBuilder()
            .max(maxParts).userName(userName).groupNames(groupNames)
            .build());
  }
Fetch some or all partitions for a table, along with privilege information for a particular
user.
@param catName catalog name.
@param dbName database name.
@param tblName table name.
@param maxParts maximum number of partitions to fetch, -1 for all partitions.
@param userName user to get privilege information for.
@param groupNames groups to get privilege information for.
@return list of partitions.
@throws MetaException error access the RDBMS.
@throws NoSuchObjectException no such table exists
@throws InvalidObjectException error fetching privilege information.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/RawStore.java