nsivabalan commented on code in PR #20885:
URL: https://github.com/apache/hudi/pull/20885#discussion_r4714876323


##########
hudi-common/src/main/java/org/apache/hudi/common/model/HoodieRecordGlobalLocation.java:
##########
@@ -53,7 +53,7 @@ public HoodieRecordGlobalLocation(String partitionPath, 
String instantTime, Stri
    * Returns the global record location from local.
    */
   public static HoodieRecordGlobalLocation fromLocal(String partitionPath, 
HoodieRecordLocation localLoc) {
-    return new HoodieRecordGlobalLocation(partitionPath, 
localLoc.getInstantTime(), localLoc.getFileId());
+    return new HoodieRecordGlobalLocation(partitionPath, 
localLoc.getInstantTime(), localLoc.getFileId(), localLoc.getPosition());

Review Comment:
   To be clear, I think this change is welcome, not a problem. BLOOM and SIMPLE 
already pass positions through, the global versions read the same base files, 
and dropping the position in `fromLocal` looks like an oversight. Keeping it 
costs no extra I/O, gives global-index MoR tables position-based merging on 
snapshot reads and compaction, and readers still fall back to merging by key 
when the base-file instant does not match. So I am not asking to revert it, 
only to call it out under Impact and in the release notes (it changes behavior 
for existing global-index MoR tables on v8+ with the mode off) and to cover it 
with the partition-path-update and compaction test.



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