diff --git a/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/sink/FlinkSink.java b/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/sink/FlinkSink.java index 6acb5b77c2a9..d7764f149a55 100644 --- a/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/sink/FlinkSink.java +++ b/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/sink/FlinkSink.java @@ -232,7 +232,7 @@ public DataStream doWrite( declareManagedMemory(written, options.get(SINK_MANAGED_WRITER_BUFFER_MEMORY)); } - if (options.contains(CHANGELOG_PRECOMMIT_COMPACT)) { + if (options.get(CHANGELOG_PRECOMMIT_COMPACT)) { written = written.transform( "Changelog Compact Coordinator", diff --git a/paimon-flink/paimon-flink-common/src/test/java/org/apache/paimon/flink/PrimaryKeyFileStoreTableITCase.java b/paimon-flink/paimon-flink-common/src/test/java/org/apache/paimon/flink/PrimaryKeyFileStoreTableITCase.java index 9a9abd8f8d7e..b046ebeda0f8 100644 --- a/paimon-flink/paimon-flink-common/src/test/java/org/apache/paimon/flink/PrimaryKeyFileStoreTableITCase.java +++ b/paimon-flink/paimon-flink-common/src/test/java/org/apache/paimon/flink/PrimaryKeyFileStoreTableITCase.java @@ -688,7 +688,7 @@ private void testLookupChangelogProducerRandom( + "'lookup-wait' = '%s', " + "'deletion-vectors.enabled' = '%s', " + "'changelog.precommit-compact' = '%s'", - random.nextBoolean() ? "512kb" : "1mb", + random.nextBoolean() ? "4mb" : "8mb", random.nextBoolean(), enableDeletionVectors, random.nextBoolean()));