You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "lei w (Jira)" <ji...@apache.org> on 2024/02/22 02:49:00 UTC

[jira] [Created] (HUDI-7436) Not need to reWriteRecord when method SchemaCompatibility.checkReaderWriterCompatibility return SchemaCompatibilityType.COMPATIBLE

lei w created HUDI-7436:
---------------------------

             Summary: Not need to reWriteRecord when method SchemaCompatibility.checkReaderWriterCompatibility return SchemaCompatibilityType.COMPATIBLE
                 Key: HUDI-7436
                 URL: https://issues.apache.org/jira/browse/HUDI-7436
             Project: Apache Hudi
          Issue Type: Bug
            Reporter: lei w


In HoodieMergeHelper#composeSchemaEvolutionTransformer we use this condition _sameCols.size() != colNamesFromWriteSchema.size()
          || SchemaCompatibility.checkReaderWriterCompatibility(newWriterSchema, writeSchemaFromFile).getType() == org.apache.avro.SchemaCompatibility.SchemaCompatibilityType.COMPATIBLE_  to determine whether we need to rewrite record. The second  condition may need to be negated.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)