private boolean getPartitionNamesPrunedByExprNoTxn(String catName, String dbName, String tblName, List<FieldSchema> partColumns, byte[] expr,
                                                     String defaultPartName, short maxParts, List<String> result) throws MetaException {
    result.addAll(getPartitionNamesNoTxn(catName, dbName, tblName, (short) -1));
    return prunePartitionNamesByExpr(catName, dbName, tblName, result,
        new GetPartitionsArgs.GetPartitionsArgsBuilder()
            .expr(expr).defaultPartName(defaultPartName).max(maxParts).build());
  }
Gets the partition names from a table, pruned using an expression.
@param catName
@param dbName
@param tblName
@param expr Expression.
@param defaultPartName Default partition name from job config, if any.
@param maxParts Maximum number of partition names to return.
@param result The resulting names.
@return Whether the result contains any unknown partitions.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java