@Override
  public boolean addPartition(Partition part) throws InvalidObjectException,
      MetaException {
    boolean committed = false;
    try {
      openTransaction();
      String catName = part.isSetCatName() ? part.getCatName() : getDefaultCatalog(conf);
      addPartitionsInternal(catName, part.getDbName(), part.getTableName(), Arrays.asList(part));
      committed = commitTransaction();
    } finally {
      rollbackAndCleanup(committed, null);
    }
    return committed;
  }
This method resets the stats to 0 and supports only backward compatibility with clients does not
send {@link SourceTable} instances.

Use {@link ObjectStore#convertToSourceTable(String, SourceTable)} instead.

@param catalog Catalog name where source table is located
@param fullyQualifiedTableName fully qualified name of source table
@return {@link MMVSource} instance represents this source table.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java