linliu-code commented on code in PR #13498:
URL: https://github.com/apache/hudi/pull/13498#discussion_r2198211886


##########
hudi-common/src/main/java/org/apache/hudi/common/table/read/BufferedRecordMergerFactory.java:
##########
@@ -77,8 +85,22 @@ public static <T> BufferedRecordMerger<T> 
create(HoodieReaderContext<T> readerCo
    * based on {@code COMMIT_TIME_ORDERING} merge mode.
    */
   private static class CommitTimeBufferedRecordMerger<T> implements 
BufferedRecordMerger<T> {
+    private final PartialUpdateStrategy<T> partialUpdateStrategy;
+    private final Schema readerSchema;
+
+    public CommitTimeBufferedRecordMerger(HoodieReaderContext<T> readerContext,
+                                          PartialUpdateMode partialUpdateMode,
+                                          TypedProperties props,
+                                          Schema readerSchema) {
+      this.partialUpdateStrategy = new PartialUpdateStrategy<>(readerContext, 
partialUpdateMode, props);
+      this.readerSchema = readerSchema;
+    }
+
     @Override
-    public Option<BufferedRecord<T>> deltaMerge(BufferedRecord<T> newRecord, 
BufferedRecord<T> existingRecord) {
+    public Option<BufferedRecord<T>> deltaMerge(BufferedRecord<T> newRecord,
+                                                BufferedRecord<T> 
existingRecord) {
+      newRecord = partialUpdateStrategy.reconcileFieldsWithOldRecord(

Review Comment:
   Done.



-- 
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]

Reply via email to