Skip to content

Commit

Permalink
[HUDI-4109] Copy the old record directly when it is chosen for merging (
Browse files Browse the repository at this point in the history
  • Loading branch information
danny0405 authored and yihua committed Jun 3, 2022
1 parent 1d7f9e4 commit 0676d5b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ private boolean writeUpdateRecord(HoodieRecord<T> hoodieRecord, GenericRecord ol
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);
Expand Down

0 comments on commit 0676d5b

Please sign in to comment.