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


##########
hudi-client/hudi-flink-client/src/main/java/org/apache/hudi/io/FlinkMergeAndReplaceHandle.java:
##########
@@ -133,6 +135,17 @@ protected void makeOldAndNewFilePaths(String 
partitionPath, String oldFileName,
     }
   }
 
+  @Override
+  protected HoodieRecord<T> updateOrPrependMetaFields(HoodieRecord<T> record, 
Schema schema, Schema targetSchema, String fileName, Properties prop) {
+    if (schema.getField(HoodieRecord.RECORD_KEY_METADATA_FIELD) == null) {

Review Comment:
   there is a flag in the merge handle to indicate whether the record includes 
metadata fields.



-- 
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