danny0405 commented on code in PR #13860:
URL: https://github.com/apache/hudi/pull/13860#discussion_r2331745079


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieWriteHandle.java:
##########
@@ -116,7 +117,8 @@ protected HoodieWriteHandle(HoodieWriteConfig config, 
String instantTime, String
     this.partitionPath = partitionPath;
     this.fileId = fileId;
     this.writeSchema = AvroSchemaCache.intern(overriddenSchema.orElseGet(() -> 
getWriteSchema(config)));
-    this.writeSchemaWithMetaFields = 
AvroSchemaCache.intern(HoodieAvroUtils.addMetadataFields(writeSchema, 
config.allowOperationMetadataField()));
+    this.hasOperationMetaField = config.allowOperationMetadataField();
+    this.writeSchemaWithMetaFields = 
AvroSchemaCache.intern(HoodieAvroUtils.addMetadataFields(writeSchema, 
hasOperationMetaField));

Review Comment:
   The flag `hasOperationMetaField` is redundant, the field is already within 
the `writeSchemaWithMetaFields`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to