Skip to content

Commit a16aa28

Browse files
committed
[FLINK-35067][cdc-connector][postgres] Adding metadata 'row_kind' for Postgres CDC Connector
1 parent 33018d5 commit a16aa28

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

flink-cdc-connect/flink-cdc-source-connectors/flink-connector-postgres-cdc/src/test/java/org/apache/flink/cdc/connectors/postgres/table/PostgreSQLConnectorITCase.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public void testConsumingAllEvents()
197197
"spare tire,22.200"
198198
};
199199

200-
List<String> actual = TestValuesTableFactory.getResults("sink");
200+
List<String> actual = TestValuesTableFactory.getResultsAsStrings("sink");
201201
assertThat(actual, containsInAnyOrder(expected));
202202

203203
result.getJobClient().get().cancel().get();
@@ -271,7 +271,7 @@ public void testStartupFromLatestOffset() throws Exception {
271271
String[] expected =
272272
new String[] {"110,jacket,new water resistent white wind breaker,0.500"};
273273

274-
List<String> actual = TestValuesTableFactory.getResults("sink");
274+
List<String> actual = TestValuesTableFactory.getResultsAsStrings("sink");
275275
assertThat(actual, containsInAnyOrder(expected));
276276

277277
result.getJobClient().get().cancel().get();
@@ -459,7 +459,7 @@ public void testAllTypes() throws Throwable {
459459
"+I(1,[50],32767,65535,2147483647,5.5,6.6,123.12345,404.4,true,Hello World,a,abc,abcd..xyz,2020-07-17T18:00:22.123,2020-07-17T18:00:22.123456,2020-07-17,18:00:22,500,{\"hexewkb\":\"0105000020e610000001000000010200000002000000a779c7293a2465400b462575025a46c0c66d3480b7fc6440c3d32b65195246c0\",\"srid\":4326},{\"hexewkb\":\"0101000020730c00001c7c613255de6540787aa52c435c42c0\",\"srid\":3187})",
460460
"-D(1,[50],32767,65535,2147483647,5.5,6.6,123.12345,404.4,true,Hello World,a,abc,abcd..xyz,2020-07-17T18:00:22.123,2020-07-17T18:00:22.123456,2020-07-17,18:00:22,500,{\"hexewkb\":\"0105000020e610000001000000010200000002000000a779c7293a2465400b462575025a46c0c66d3480b7fc6440c3d32b65195246c0\",\"srid\":4326},{\"hexewkb\":\"0101000020730c00001c7c613255de6540787aa52c435c42c0\",\"srid\":3187})",
461461
"+I(1,[50],0,65535,2147483647,5.5,6.6,123.12345,404.4,true,Hello World,a,abc,abcd..xyz,2020-07-17T18:00:22.123,2020-07-17T18:00:22.123456,2020-07-17,18:00:22,500,{\"hexewkb\":\"0105000020e610000001000000010200000002000000a779c7293a2465400b462575025a46c0c66d3480b7fc6440c3d32b65195246c0\",\"srid\":4326},{\"hexewkb\":\"0101000020730c00001c7c613255de6540787aa52c435c42c0\",\"srid\":3187})");
462-
List<String> actual = TestValuesTableFactory.getRawResults("sink");
462+
List<String> actual = TestValuesTableFactory.getRawResultsAsStrings("sink");
463463
assertEquals(expected, actual);
464464

465465
result.getJobClient().get().cancel().get();
@@ -599,7 +599,7 @@ public void testMetadataColumns() throws Throwable {
599599
"-D("
600600
+ databaseName
601601
+ ",inventory,products,-D,111,scooter,Big 2-wheel scooter ,5.170)");
602-
List<String> actual = TestValuesTableFactory.getRawResults("sink");
602+
List<String> actual = TestValuesTableFactory.getRawResultsAsStrings("sink");
603603
Collections.sort(actual);
604604
Collections.sort(expected);
605605
assertEquals(expected, actual);
@@ -718,7 +718,7 @@ public void testUpsertMode() throws Exception {
718718
"spare tire,22.200"
719719
};
720720

721-
List<String> actual = TestValuesTableFactory.getResults("sink");
721+
List<String> actual = TestValuesTableFactory.getResultsAsStrings("sink");
722722
assertThat(actual, containsInAnyOrder(expected));
723723

724724
result.getJobClient().get().cancel().get();

0 commit comments

Comments
 (0)