You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: flink-connector-postgres-cdc/src/main/java/com/ververica/cdc/connectors/postgres/table/PostgreSQLTableSource.java
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -121,6 +121,8 @@ public ScanRuntimeProvider getScanRuntimeProvider(ScanContext scanContext) {
Copy file name to clipboardExpand all lines: flink-connector-postgres-cdc/src/test/java/com/ververica/cdc/connectors/postgres/table/PostgreSQLConnectorITCase.java
+49-45Lines changed: 49 additions & 45 deletions
Original file line number
Diff line number
Diff line change
@@ -247,26 +247,28 @@ public void testAllTypes() throws Throwable {
247
247
248
248
StringsourceDDL =
249
249
String.format(
250
-
"CREATE TABLE full_types (\n"
251
-
+ " id INTEGER NOT NULL,\n"
252
-
+ " bytea_c BYTES,\n"
253
-
+ " small_c SMALLINT,\n"
254
-
+ " int_c INTEGER,\n"
255
-
+ " big_c BIGINT,\n"
256
-
+ " real_c FLOAT,\n"
257
-
+ " double_precision DOUBLE,\n"
258
-
+ " numeric_c DECIMAL(10, 5),\n"
259
-
+ " decimal_c DECIMAL(10, 1),\n"
260
-
+ " boolean_c BOOLEAN,\n"
261
-
+ " text_c STRING,\n"
262
-
+ " char_c STRING,\n"
263
-
+ " character_c STRING,\n"
264
-
+ " character_varying_c STRING,\n"
265
-
+ " timestamp3_c TIMESTAMP(3),\n"
266
-
+ " timestamp6_c TIMESTAMP(6),\n"
267
-
+ " date_c DATE,\n"
268
-
+ " time_c TIME(0),\n"
269
-
+ " default_numeric_c DECIMAL\n"
250
+
"CREATE TABLE full_types ("
251
+
+ " id INTEGER NOT NULL,"
252
+
+ " bytea_c BYTES,"
253
+
+ " small_c SMALLINT,"
254
+
+ " int_c INTEGER,"
255
+
+ " big_c BIGINT,"
256
+
+ " real_c FLOAT,"
257
+
+ " double_precision DOUBLE,"
258
+
+ " numeric_c DECIMAL(10, 5),"
259
+
+ " decimal_c DECIMAL(10, 1),"
260
+
+ " boolean_c BOOLEAN,"
261
+
+ " text_c STRING,"
262
+
+ " char_c STRING,"
263
+
+ " character_c STRING,"
264
+
+ " character_varying_c STRING,"
265
+
+ " timestamp3_c TIMESTAMP(3),"
266
+
+ " timestamp6_c TIMESTAMP(6),"
267
+
+ " date_c DATE,"
268
+
+ " time_c TIME(0),"
269
+
+ " default_numeric_c DECIMAL,"
270
+
+ " geography_c STRING,"
271
+
+ " geometry_c STRING"
270
272
+ ") WITH ("
271
273
+ " 'connector' = 'postgres-cdc',"
272
274
+ " 'hostname' = '%s',"
@@ -282,29 +284,31 @@ public void testAllTypes() throws Throwable {
282
284
POSTGERS_CONTAINER.getUsername(),
283
285
POSTGERS_CONTAINER.getPassword(),
284
286
POSTGERS_CONTAINER.getDatabaseName(),
285
-
"public",
287
+
"inventory",
286
288
"full_types");
287
289
StringsinkDDL =
288
-
"CREATE TABLE sink (\n"
289
-
+ " id INTEGER NOT NULL,\n"
290
-
+ " bytea_c BYTES,\n"
291
-
+ " small_c SMALLINT,\n"
292
-
+ " int_c INTEGER,\n"
293
-
+ " big_c BIGINT,\n"
294
-
+ " real_c FLOAT,\n"
295
-
+ " double_precision DOUBLE,\n"
296
-
+ " numeric_c DECIMAL(10, 5),\n"
297
-
+ " decimal_c DECIMAL(10, 1),\n"
298
-
+ " boolean_c BOOLEAN,\n"
299
-
+ " text_c STRING,\n"
300
-
+ " char_c STRING,\n"
301
-
+ " character_c STRING,\n"
302
-
+ " character_varying_c STRING,\n"
303
-
+ " timestamp3_c TIMESTAMP(3),\n"
304
-
+ " timestamp6_c TIMESTAMP(6),\n"
305
-
+ " date_c DATE,\n"
306
-
+ " time_c TIME(0),\n"
307
-
+ " default_numeric_c DECIMAL\n"
290
+
"CREATE TABLE sink ("
291
+
+ " id INTEGER NOT NULL,"
292
+
+ " bytea_c BYTES,"
293
+
+ " small_c SMALLINT,"
294
+
+ " int_c INTEGER,"
295
+
+ " big_c BIGINT,"
296
+
+ " real_c FLOAT,"
297
+
+ " double_precision DOUBLE,"
298
+
+ " numeric_c DECIMAL(10, 5),"
299
+
+ " decimal_c DECIMAL(10, 1),"
300
+
+ " boolean_c BOOLEAN,"
301
+
+ " text_c STRING,"
302
+
+ " char_c STRING,"
303
+
+ " character_c STRING,"
304
+
+ " character_varying_c STRING,"
305
+
+ " timestamp3_c TIMESTAMP(3),"
306
+
+ " timestamp6_c TIMESTAMP(6),"
307
+
+ " date_c DATE,"
308
+
+ " time_c TIME(0),"
309
+
+ " default_numeric_c DECIMAL,"
310
+
+ " geography_c STRING,"
311
+
+ " geometry_c STRING"
308
312
+ ") WITH ("
309
313
+ " 'connector' = 'values',"
310
314
+ " 'sink-insert-only' = 'false'"
@@ -319,16 +323,16 @@ public void testAllTypes() throws Throwable {
0 commit comments