linliu-code commented on code in PR #13559:
URL: https://github.com/apache/hudi/pull/13559#discussion_r2217444443
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieMergeHandle.java:
##########
@@ -406,7 +454,9 @@ public void write(HoodieRecord<T> oldRecord) {
boolean copyOldRecord = true;
String key = oldRecord.getRecordKey(oldSchema, keyGeneratorOpt);
TypedProperties props = config.getPayloadConfig().getProps();
- if (keyToNewRecords.containsKey(key)) {
+ if (recordBuffer != null && recordBuffer.containsLogRecord(key)) {
Review Comment:
@the-other-tim-brown yeah, you are right. i think I only need to refactor
FGReaderBasedMergeHandle, I will abandon this PR.
--
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]