microbearz commented on code in PR #6516:
URL: https://github.com/apache/hudi/pull/6516#discussion_r958208679
##########
hudi-common/src/main/java/org/apache/hudi/BaseHoodieTableFileIndex.java:
##########
@@ -297,6 +297,16 @@ private void doRefresh() {
.orElse(Collections.emptyList())
)
);
+ } else if (tableType.equals(HoodieTableType.MERGE_ON_READ) &&
queryType.equals(HoodieTableQueryType.READ_OPTIMIZED)) {
Review Comment:
@alexeykudinkin
With `getLatestFileSlices` we can get all latest file-slice in each
file-group, but if there is a pending compaction, an empty file-slice will be
added to file group in pending compaction, so when `getLatestFileSlices`
called, we always get empty file-slice with a pending compaction instant.
Actually we want the latest completed file slices in file groups.
https://github.com/apache/hudi/blob/30e36f35eb2d81515feb6189066418e0fee14f52/hudi-common/src/main/java/org/apache/hudi/common/table/view/AbstractTableFileSystemView.java#L194
--
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]