@Deprecated
  default void alter_partition(String catName, String dbName, String tblName, Partition newPart)
      throws InvalidOperationException, MetaException, TException {
    alter_partition(catName, dbName, tblName, newPart, null);
  }
updates a partition to new partition
@param catName catalog name
@param dbName
         database of the old partition
@param tblName
         table name of the old partition
@param newPart
         new partition
@throws InvalidOperationException
          if the old partition does not exist
@throws MetaException
          if error in updating metadata
@throws TException
          if error in communicating with metastore server
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java