-
Notifications
You must be signed in to change notification settings - Fork 590
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(connector): add kafka-cdc-sink compatible test (#13607)
- Loading branch information
Showing
10 changed files
with
163 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
integration_tests/kafka-cdc-sink/compatibility-rw-flink.sql
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
integration_tests/kafka-cdc-sink/flink/compatibility-flink.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
CREATE TABLE topic_types ( | ||
id INT, | ||
c_boolean BOOLEAN, | ||
c_smallint SMALLINT, | ||
c_integer INT, | ||
c_bigint BIGINT, | ||
c_decimal decimal, | ||
c_real FLOAT, | ||
c_double_precision DOUBLE, | ||
c_varchar VARCHAR, | ||
c_bytea BYTES | ||
) WITH ( | ||
'connector' = 'kafka', | ||
'topic' = 'flinktypes', | ||
'properties.bootstrap.servers' = 'message_queue:29092', | ||
'properties.group.id' = 'test-flink-client-1', | ||
'scan.startup.mode' = 'earliest-offset', | ||
'format' = 'debezium-json', | ||
'debezium-json.schema-include' = 'true' | ||
); | ||
|
||
CREATE TABLE pg_types ( | ||
id INT, | ||
c_boolean BOOLEAN, | ||
c_smallint SMALLINT, | ||
c_integer INT, | ||
c_bigint BIGINT, | ||
c_decimal decimal, | ||
c_real FLOAT, | ||
c_double_precision DOUBLE, | ||
c_varchar VARCHAR, | ||
c_bytea BYTES, | ||
PRIMARY KEY (`id`) NOT ENFORCED | ||
) WITH ( | ||
'connector' = 'jdbc', | ||
'url' = 'jdbc:postgresql://postgres:5432/mydb?user=myuser&password=123456', | ||
'table-name' = 'flink_types' | ||
); | ||
|
||
INSERT INTO pg_types | ||
SELECT * FROM topic_types; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
counts,flinkcounts | ||
counts,flinkcounts,types,flink_types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters