private String getJDOFilterStrForPartitionVals(Table table, List<String> vals,
      Map params) throws MetaException {
    String partNameMatcher = MetaStoreUtils.makePartNameMatcher(table, vals, ".*");
    params.put("dbName", table.getDbName());
    params.put("catName", table.getCatName());
    params.put("tableName", table.getTableName());
    params.put("partialRegex", partNameMatcher);
    return "table.database.name == dbName" + " && table.database.catalogName == catName"
        + " && table.tableName == tableName" + " && partitionName.matches(partialRegex)";
  }
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