private void validatePartition(Partition newPart) throws HiveException {
    // Remove the DDL time so that it gets refreshed
    if (newPart.getParameters() != null) {
      newPart.getParameters().remove(hive_metastoreConstants.DDL_TIME);
    }
    newPart.checkValidity();
  }
Updates the existing partition metadata with the new metadata.

@param dbName
         name of the exiting table's database
@param tblName
         name of the existing table
@param newPart
         new partition
@param environmentContext
         environment context for the method
@param transactional
         indicates this call is for transaction stats
@throws InvalidOperationException
          if the changes in metadata is not acceptable
@throws HiveException
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java