satishkotha commented on a change in pull request #2048:
URL: https://github.com/apache/hudi/pull/2048#discussion_r493881151
##########
File path:
hudi-common/src/main/java/org/apache/hudi/common/table/view/AbstractTableFileSystemView.java
##########
@@ -738,7 +799,9 @@ private String formatPartitionKey(String partitionStr) {
* @param commitsToReturn Commits
*/
Stream<FileSlice> fetchLatestFileSliceInRange(List<String> commitsToReturn) {
- return fetchAllStoredFileGroups().map(fileGroup ->
fileGroup.getLatestFileSliceInRange(commitsToReturn))
+ return fetchAllStoredFileGroups()
+ .filter(fileGroup -> !isFileGroupReplacedBeforeAny(fileGroup,
commitsToReturn))
Review comment:
Changed. Please take a look.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]