[HUDI-2752] The MOR DELETE block breaks the event time sequence of CDC (#4880)
This commit is contained in:
@@ -102,7 +102,7 @@ public class FlinkWriteHelper<T extends HoodieRecordPayload, R> extends BaseWrit
|
||||
// we cannot allow the user to change the key or partitionPath, since that will affect
|
||||
// everything
|
||||
// so pick it from one of the records.
|
||||
boolean choosePrev = data1.equals(reducedData);
|
||||
boolean choosePrev = data1 == reducedData;
|
||||
HoodieKey reducedKey = choosePrev ? rec1.getKey() : rec2.getKey();
|
||||
HoodieOperation operation = choosePrev ? rec1.getOperation() : rec2.getOperation();
|
||||
HoodieRecord<T> hoodieRecord = new HoodieAvroRecord<>(reducedKey, reducedData, operation);
|
||||
|
||||
Reference in New Issue
Block a user