PavithranRick commented on code in PR #17604:
URL: https://github.com/apache/hudi/pull/17604#discussion_r2756449923


##########
hudi-common/src/main/java/org/apache/hudi/common/table/read/buffer/PositionBasedFileGroupRecordBuffer.java:
##########
@@ -115,6 +115,9 @@ public void processDataBlock(HoodieDataBlock dataBlock, 
Option<KeySpec> keySpecO
       // When a data block contains partial updates, subsequent record merging 
must always use
       // partial merging.
       enablePartialMerging = true;
+      if (partialUpdateModeOpt.isEmpty()) {
+        this.partialUpdateModeOpt = Option.of(PartialUpdateMode.KEEP_VALUES);

Review Comment:
   added a test case for this scenario. 
`partialMergingEnabledOnlyWhenBlockWithPartialUpdatesProcessed()`  in 
`TestSortedKeyBasedFileGroupRecordBuffer.java` file



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