@Deprecated
  default List<Partition> getPartitions(String catName, String dbName,
      String tableName, int max) throws MetaException, NoSuchObjectException {
    return getPartitions(catName, dbName, tableName, new GetPartitionsArgs
        .GetPartitionsArgsBuilder().max(max).build());
  }
Get some or all partitions for a table.
@param catName catalog name.
@param dbName database name.
@param tableName table name
@param max maximum number of partitions, or -1 to get all partitions.
@return list of partitions
@throws MetaException error access the RDBMS.
@throws NoSuchObjectException no such table exists
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/RawStore.java