private List<Long> getPartitionIdsViaSqlFilter(
      String catName, String dbName, String tblName, String sqlFilter,
      List<? extends Object> paramsForFilter, List<String> joinsForFilter, Integer max)
      throws MetaException {
    return getPartitionFieldsViaSqlFilter(catName, dbName, tblName,
        Arrays.asList("\"PART_ID\""), sqlFilter, paramsForFilter, joinsForFilter, max);
  }
Get partition ids for the query using direct SQL queries, to avoid bazillion
queries created by DN retrieving stuff for each object individually.
@param catName MetaStore catalog name
@param dbName MetaStore db name
@param tblName MetaStore table name
@param sqlFilter SQL filter to use. Better be SQL92-compliant.
@param paramsForFilter params for ?-s in SQL filter text. Params must be in order.
@param joinsForFilter if the filter needs additional join statement, they must be in
                      this list. Better be SQL92-compliant.
@param max The maximum number of partitions to return.
@return List of partition objects.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java