private boolean isValidPartition(
      Partition part, List<FieldSchema> partitionKeys, boolean ifNotExists) throws MetaException {
    MetaStoreServerUtils.validatePartitionNameCharacters(part.getValues(),
        partitionValidationPattern);
    boolean doesExist = doesPartitionExist(part.getCatName(),
        part.getDbName(), part.getTableName(), partitionKeys, part.getValues());
    if (doesExist && !ifNotExists) {
      throw new MetaException("Partition already exists: " + part);
    }
    return !doesExist;
  }
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