YannByron commented on code in PR #5885:
URL: https://github.com/apache/hudi/pull/5885#discussion_r925110096
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieMergeHandle.java:
##########
@@ -281,7 +313,18 @@ private boolean writeUpdateRecord(HoodieRecord<T>
hoodieRecord, GenericRecord ol
return false;
}
}
- return writeRecord(hoodieRecord, indexedRecord, isDelete);
+ boolean result = writeRecord(hoodieRecord, indexedRecord, isDelete);
+ if (cdcEnabled) {
+ if (indexedRecord.isPresent()) {
+ GenericRecord record = (GenericRecord) indexedRecord.get();
+ cdcData.add(cdcRecord(CDCOperationEnum.UPDATE,
hoodieRecord.getRecordKey(), hoodieRecord.getPartitionPath(),
Review Comment:
ok, i will use `hudi.common.util.collection.ExternalSpillableMap` instead
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]