1
0

[HUDI-4109] Copy the old record directly when it is chosen for merging (#5603)

This commit is contained in:
Danny Chan
2022-05-18 10:17:00 +08:00
committed by GitHub
parent ebbe56e862
commit f1f8a1abb7

View File

@@ -265,6 +265,9 @@ public class HoodieMergeHandle<T extends HoodieRecordPayload, I, K, O> extends H
if (oldRecord != record) {
// the incoming record is chosen
isDelete = HoodieOperation.isDelete(hoodieRecord.getOperation());
} else {
// the incoming record is dropped
return false;
}
}
return writeRecord(hoodieRecord, indexedRecord, isDelete);