@Override
  public PartitionSpecProxy listPartitionSpecsByFilter(
      String dbName, String tblName, String filter, int maxParts) throws TException {
    return PartitionSpecProxy.Factory.get(
        filterHook.filterPartitionSpecs(
            client.get_part_specs_by_filter(dbName, tblName, filter, maxParts)));
  }
Get list of partitions matching specified filter

@param dbName the database name
@param tblName the table name
@param filter the filter string, for example "part1 = \"p1_abc\" and part2 <= "\p2_test\"".
    Filtering can be done only on string partition keys.
@param maxParts the maximum number of partitions to return, all partitions are returned if -1
    is passed
@return list of partitions
@throws MetaException
@throws NoSuchObjectException
@throws TException
amoro-format-mixed/amoro-mixed-trino/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java