@Override
      protected List<String> getJdoResult(
          GetHelper<List<String>> ctx) throws MetaException, NoSuchObjectException {
        List<String> result = null;
        if (exprTree != null) {
          try {
            result = getPartitionNamesViaOrm(catName, dbName, tblName, exprTree, order,
                maxParts, true, ctx.getTable().getPartitionKeys());
          } catch (MetaException e) {
            result = null;
          }
        }
        if (result == null) {
          result = getPartNamesPrunedByExpr(ctx.getTable(), true);
        }
        return result;
      }
Drop an MPartition and cascade deletes (e.g., delete partition privilege grants,
  drop the storage descriptor cleanly, etc.)
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java