Skip to content

Commit

Permalink
[HUDI-5007] Prevent Hudi from reading the entire timeline's when perf…
Browse files Browse the repository at this point in the history
…orming a LATEST streaming read (#6920)
  • Loading branch information
voonhous authored and satishkotha committed Dec 13, 2022
1 parent 6f2a1e9 commit 2f419a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ public List<HoodieInstant> filterInstantsWithRange(

if (OptionsResolver.hasNoSpecificReadCommits(this.conf)) {
// by default read from the latest commit
List<HoodieInstant> instants = completedTimeline.getInstants().collect(Collectors.toList());
List<HoodieInstant> instants = completedTimeline.getInstants();
if (instants.size() > 1) {
return Collections.singletonList(instants.get(instants.size() - 1));
}
Expand Down

0 comments on commit 2f419a5

Please sign in to comment.