@Override
  public void createOrUpdateStoredProcedure(StoredProcedure proc) throws NoSuchObjectException, MetaException {
    boolean committed = false;
    MStoredProc mProc;
    Query query = null;
    String catName = normalizeIdentifier(proc.getCatName());
    String dbName = normalizeIdentifier(proc.getDbName());
    MDatabase db = getMDatabase(catName, dbName);
    try {
      openTransaction();
      query = storedProcQuery();
      mProc = (MStoredProc) query.execute(proc.getName(), dbName, catName);
      pm.retrieve(mProc);
      if (mProc == null) { // create new
        mProc = new MStoredProc();
        MStoredProc.populate(mProc, proc, db);
        pm.makePersistent(mProc);
      } else { // update existing
        MStoredProc.populate(mProc, proc, db);
      }
      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