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


##########
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/io/HoodieSparkFileGroupReaderBasedMergeHandle.java:
##########
@@ -104,6 +104,8 @@ public void write() {
               row.getString(HoodieRecord.RECORD_KEY_META_FIELD_ORD),
               row.getString(HoodieRecord.PARTITION_PATH_META_FIELD_ORD));
           HoodieSparkRecord record = new HoodieSparkRecord(recordKey, row, 
sparkSchema, false);
+          record.setCurrentLocation(newRecordLocation);

Review Comment:
   this is an issue w/ FG based compaction. 
   `record` is newly constructed at L106. 
   And so both cur location and new location were not set. 
   If we were to use non-FG reader based compaction, both locations would have 
been set as expected. 
   



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