@Deprecated
  default List<Partition> getPartitionsByFilter(
     String catName, String dbName, String tblName, String filter, short maxParts)
     throws MetaException, NoSuchObjectException {
    return getPartitionsByFilter(catName, dbName, tblName, new GetPartitionsArgs
        .GetPartitionsArgsBuilder()
        .filter(filter).max(maxParts)
        .build());
  }
Get partitions with a filter.  This is a portion of the SQL where clause.
@param catName catalog name
@param dbName database name
@param tblName table name
@param filter SQL where clause filter
@param maxParts maximum number of partitions to return, or -1 for all.
@return list of partition objects matching the criteria
@throws MetaException Error accessing the RDBMS or processing the filter.
@throws NoSuchObjectException no such table.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/RawStore.java