lokeshj1703 commented on code in PR #13449:
URL: https://github.com/apache/hudi/pull/13449#discussion_r2162195739
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieAppendHandle.java:
##########
@@ -707,4 +717,14 @@ protected HoodieLogBlock getDataBlock(HoodieWriteConfig
writeConfig,
throw new HoodieException("Data block format " + logDataBlockFormat +
" not implemented");
}
}
+
+ /**
+ * Returns the file slice for reader view.
+ */
+ private Option<FileSlice> getReadFileSlice() {
+ TableFileSystemView.SliceView rtView = hoodieTable.getSliceView();
+ return
Option.fromJavaOptional(rtView.getLatestMergedFileSlicesBeforeOrOn(partitionPath,
instantTime)
+ .filter(fileSlice -> fileSlice.getFileId().equals(fileId))
Review Comment:
Addressed
--
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]