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


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieMergeHandle.java:
##########
@@ -292,6 +315,9 @@ protected void writeInsertRecord(HoodieRecord<T> 
hoodieRecord) throws IOExceptio
       return;
     }
     if (writeRecord(hoodieRecord, insertRecord, 
HoodieOperation.isDelete(hoodieRecord.getOperation()))) {
+      if (cdcEnabled) {
+        cdcLogger.put(hoodieRecord, null, insertRecord);
+      }

Review Comment:
   What do you mean for `deserialized twice`, just overwride the `writeRecord` 
method and add the cdc logger logic should work here.



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