private void dropPartitionsNoTxn(String catName, String dbName, String tblName, List<String> partNames) {
    Pair<Query, Map<String, String>> queryWithParams =
        getPartQueryWithParams(catName, dbName, tblName, partNames);
    try (QueryWrapper query = new QueryWrapper(queryWithParams.getLeft())) {
      query.setClass(MPartition.class);
      long deleted = query.deletePersistentAll(queryWithParams.getRight());
      LOG.debug("Deleted {} partition from store", deleted);
    }
  }
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