File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
paimon-flink/paimon-flink-common/src/test/java/org/apache/paimon/flink Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,14 @@ public void testInputChangelogProducer() throws Exception {
100100 public void testLookupChangelogProducer () throws Exception {
101101 Options options = new Options ();
102102 options .set (CHANGELOG_PRODUCER , LOOKUP );
103- test (options , ChangelogMode .all (), ChangelogMode .upsert ());
103+
104+ // Compatible to Flink 2.0 (keyOnlyDeletes)
105+ ChangelogMode .Builder upsertBuilder = ChangelogMode .newBuilder ();
106+ for (RowKind kind : ChangelogMode .all ().getContainedKinds ()) {
107+ if (kind != RowKind .UPDATE_BEFORE ) {
108+ upsertBuilder .addContainedKind (kind );
109+ }
110+ }
111+ test (options , ChangelogMode .all (), upsertBuilder .build ());
104112 }
105113}
You can’t perform that action at this time.
0 commit comments