@Override
      public List<Partition> run(List<String> input) throws MetaException {
        Pair<Query, Map<String, String>> queryWithParams =
            getPartQueryWithParams(catName, dbName, tblName, input);

        try (QueryWrapper query = new QueryWrapper(queryWithParams.getLeft())) {
          query.setResultClass(MPartition.class);
          query.setClass(MPartition.class);
          query.setOrdering("partitionName ascending");

          List<MPartition> mparts = (List<MPartition>) query.executeWithMap(queryWithParams.getRight());
          List<Partition> partitions = convertToParts(catName, dbName, tblName, mparts,
                  isAcidTable, args);

          return partitions;
        }
      }
Gets partition names from the table via ORM (JDOQL) name filter.
@param dbName Database name.
@param tblName Table name.
@param isAcidTable True if the table is ACID
@param args additional arguments for getting partitions
@return Resulting partitions.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java