public int getNumPartitionsByFilter(String dbName, String tblName, String filter)
      throws MetaException, NoSuchObjectException, TException {
    return client.get_num_partitions_by_filter(dbName, tblName, filter);
  }
Get number 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.
@return number of partitions
@throws MetaException
@throws NoSuchObjectException
@throws TException
amoro-format-mixed/amoro-mixed-trino/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java