danny0405 commented on code in PR #12206:
URL: https://github.com/apache/hudi/pull/12206#discussion_r1841401288


##########
hudi-common/src/main/java/org/apache/hudi/common/table/view/AbstractTableFileSystemView.java:
##########
@@ -915,7 +963,15 @@ 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));
+        Stream<FileSlice> fileSlices = tableVersion8AndAbove()
+            ? this.filterUncommittedFiles(fs.get(), true)
+            : this.filterBaseFileAfterPendingCompaction(fs.get(), true);

Review Comment:
   Do we need to also fix the merged log record scanner to bring back the 
pending instant check for the log blocks because of these unfiltered log files?



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