private Pair<Query, Map<String, String>> getPartQueryWithParams(
      String catName, String dbName, String tblName, List<String> partNames) {
    Query query = pm.newQuery();
    Map<String, String> params = new HashMap<>();
    String filterStr = getJDOFilterStrForPartitionNames(catName, dbName, tblName, partNames, params);
    query.setFilter(filterStr);
    LOG.debug(" JDOQL filter is {}", filterStr);
    query.declareParameters(makeParameterDeclarationString(params));
    return Pair.of(query, params);
  }
Detaches column descriptors from storage descriptors; returns the set of unique CDs
thus detached. This is done before dropping partitions because CDs are reused between
SDs; so, we remove the links to delete SDs and then check the returned CDs to see if
they are referenced by other SDs.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java