lokeshj1703 commented on code in PR #13449:
URL: https://github.com/apache/hudi/pull/13449#discussion_r2160984925


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieAppendHandle.java:
##########
@@ -226,6 +231,11 @@ private Option<FileSlice> 
populateWriteStatAndFetchFileSlice(HoodieRecord record
     return fileSlice;
   }
 
+  private Option<FileSlice> getFileSlice() {
+    TableFileSystemView.SliceView rtView = hoodieTable.getSliceView();
+    return rtView.getLatestFileSlice(partitionPath, fileId);

Review Comment:
   Thanks @danny0405 ! I have fixed the handle to use the LatestFileSlice for 
the write. It is used to populate the write stats which seems like the right 
file slice to use.
   Currently using `getLatestMergedFileSlicesBeforeOrOn` only for secondary 
index stats so that they are correctly generated by considering the merged file 
slice.



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