1
0

[HUDI-2996] Flink streaming reader 'skip_compaction' option does not work (#4304)

close apache/hudi#4304
This commit is contained in:
Fugle666
2021-12-14 11:31:36 +08:00
committed by yuzhao.cyz
parent 46de25d5fd
commit 29bc5fd912
3 changed files with 21 additions and 3 deletions

View File

@@ -286,7 +286,7 @@ public class IncrementalInputSplits implements Serializable {
HoodieTimeline completedTimeline = commitTimeline.filterCompletedInstants();
if (issuedInstant != null) {
// returns early for streaming mode
return completedTimeline.getInstants()
return maySkipCompaction(completedTimeline.getInstants())
.filter(s -> HoodieTimeline.compareTimestamps(s.getTimestamp(), GREATER_THAN, issuedInstant))
.collect(Collectors.toList());
}