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 May 18, 2022
1 parent ebbe56e commit f1f8a1a
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 f1f8a1a

Please sign in to comment.