danny0405 commented on code in PR #12206:
URL: https://github.com/apache/hudi/pull/12206#discussion_r1839347041
##########
hudi-common/src/main/java/org/apache/hudi/common/table/view/AbstractTableFileSystemView.java:
##########
@@ -915,7 +958,16 @@ public final Option<FileSlice> getLatestFileSlice(String
partitionStr, String fi
if (!fs.isPresent()) {
return Option.empty();
}
- return Option.ofNullable(filterUncommittedFiles(fs.get(),
true).map(this::addBootstrapBaseFileIfPresent).findFirst().orElse(null));
+ HoodieTableVersion tableVersion =
metaClient.getTableConfig().getTableVersion();
+ Stream<FileSlice> fileSlices =
tableVersion.greaterThanOrEquals(HoodieTableVersion.EIGHT)
Review Comment:
Maybe we just maintain a flag variable `isTableVersionAboveEight` so that
the code would be cleaner.
--
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]