Skip to content

Commit

Permalink
feat: Filter splits that do not require compaction
Browse files Browse the repository at this point in the history
  • Loading branch information
zhourui999 committed Apr 21, 2024
1 parent 6c75f2c commit 52284e5
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import org.apache.paimon.options.Options;
import org.apache.paimon.table.FileStoreTable;
import org.apache.paimon.table.sink.ChannelComputer;
import org.apache.paimon.table.sink.CommitMessageImpl;
import org.apache.paimon.utils.Preconditions;

import org.apache.flink.runtime.state.StateInitializationContext;
Expand Down Expand Up @@ -182,17 +181,6 @@ protected List<MultiTableCommittable> prepareCommit(boolean waitCompaction, long
StoreSinkWrite write = entry.getValue();
committables.addAll(
write.prepareCommit(waitCompaction, checkpointId).stream()
.filter(
committable -> {
if (committable.kind() == Committable.Kind.FILE) {
CommitMessageImpl commitMessage =
(CommitMessageImpl)
committable.wrappedCommittable();
return !commitMessage.newFilesIncrement().isEmpty()
&& !commitMessage.compactIncrement().isEmpty();
}
return true;
})
.map(
committable ->
MultiTableCommittable.fromCommittable(key, committable))
Expand Down

0 comments on commit 52284e5

Please sign in to comment.