@Override
  public void addPackage(AddPackageRequest request) throws NoSuchObjectException, MetaException {
    boolean committed = false;
    MPackage mPkg;
    Query query = null;
    String catName = normalizeIdentifier(request.getCatName());
    String dbName = normalizeIdentifier(request.getDbName());
    MDatabase db = getMDatabase(catName, dbName);
    try {
      openTransaction();
      query = findPackageQuery();
      mPkg = (MPackage) query.execute(request.getPackageName(), dbName, catName);
      pm.retrieve(mPkg);
      if (mPkg == null) { // create new
        mPkg = new MPackage();
        MPackage.populate(mPkg, db, request);
        pm.makePersistent(mPkg);
      } else { // update existing
        MPackage.populate(mPkg, db, request);
      }
      committed = commitTransaction();
    } finally {
      rollbackAndCleanup(committed, query);
    }
  }
Get partition's column stats

@return Map of column name and its stats
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java