-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
219 additions
and
37 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
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
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
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
7 changes: 7 additions & 0 deletions
7
...ris-connector/src/test/resources/container/e2e/mysql2doris/testMySQL2DorisMultiDb2One.txt
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,7 @@ | ||
mysql-sync-database | ||
--database test_e2e_mysql | ||
--mysql-conf database-name=test_e2e_mysql.* | ||
--including-tables ".*" | ||
--multi-to-one-origin "tbl2.*" | ||
--multi-to-one-target "tbl2_merge" | ||
--table-conf replication_num=1 |
68 changes: 68 additions & 0 deletions
68
...onnector/src/test/resources/container/e2e/mysql2doris/testMySQL2DorisMultiDb2One_init.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,68 @@ | ||
-- tbl1 | ||
CREATE DATABASE if NOT EXISTS test_e2e_mysql_db1; | ||
DROP TABLE IF EXISTS test_e2e_mysql_db1.tbl1; | ||
CREATE TABLE test_e2e_mysql_db1.tbl1 ( | ||
`id` int NOT NULL, | ||
`name` varchar(255) DEFAULT NULL, | ||
`age` bigint DEFAULT NULL, | ||
PRIMARY KEY (`id`) USING BTREE | ||
); | ||
insert into test_e2e_mysql_db1.tbl1 values (1,'db1_tb1',18); | ||
|
||
CREATE DATABASE if NOT EXISTS test_e2e_mysql_db2; | ||
DROP TABLE IF EXISTS test_e2e_mysql_db2.tbl1; | ||
CREATE TABLE test_e2e_mysql_db2.tbl1 ( | ||
`id` int NOT NULL, | ||
`name` varchar(255) DEFAULT NULL, | ||
`age` bigint DEFAULT NULL, | ||
PRIMARY KEY (`id`) USING BTREE | ||
); | ||
insert into test_e2e_mysql_db2.tbl1 values (2,'db2_tb1',20); | ||
|
||
-- tbl2_1 tbl2_2 | ||
DROP TABLE IF EXISTS test_e2e_mysql_db1.tbl2_1; | ||
CREATE TABLE test_e2e_mysql_db1.tbl2_1 ( | ||
`id` int NOT NULL, | ||
`name` varchar(255) DEFAULT NULL, | ||
`age` bigint DEFAULT NULL, | ||
PRIMARY KEY (`id`) USING BTREE | ||
); | ||
insert into test_e2e_mysql_db1.tbl2_1 values (1,'db1_tb2_1',19); | ||
|
||
DROP TABLE IF EXISTS test_e2e_mysql_db1.tbl2_2; | ||
CREATE TABLE test_e2e_mysql_db1.tbl2_2 ( | ||
`id` int NOT NULL, | ||
`name` varchar(255) DEFAULT NULL, | ||
`age` bigint DEFAULT NULL, | ||
PRIMARY KEY (`id`) USING BTREE | ||
); | ||
insert into test_e2e_mysql_db1.tbl2_2 values (2,'db1_tb2_2',191); | ||
|
||
-- db2 | ||
DROP TABLE IF EXISTS test_e2e_mysql_db2.tbl2_1; | ||
CREATE TABLE test_e2e_mysql_db2.tbl2_1 ( | ||
`id` int NOT NULL, | ||
`name` varchar(255) DEFAULT NULL, | ||
`age` bigint DEFAULT NULL, | ||
PRIMARY KEY (`id`) USING BTREE | ||
); | ||
insert into test_e2e_mysql_db2.tbl2_1 values (3,'db2_tb2_2',21); | ||
|
||
DROP TABLE IF EXISTS test_e2e_mysql_db2.tbl2_2; | ||
CREATE TABLE test_e2e_mysql_db2.tbl2_2 ( | ||
`id` int NOT NULL, | ||
`name` varchar(255) DEFAULT NULL, | ||
`age` bigint DEFAULT NULL, | ||
PRIMARY KEY (`id`) USING BTREE | ||
); | ||
insert into test_e2e_mysql_db2.tbl2_2 values (4,'db2_tbl2_2',211); | ||
|
||
|
||
DROP TABLE IF EXISTS test_e2e_mysql_db2.tbl3; | ||
CREATE TABLE test_e2e_mysql_db2.tbl3 ( | ||
`id` int NOT NULL, | ||
`name` varchar(255) DEFAULT NULL, | ||
`age` bigint DEFAULT NULL, | ||
PRIMARY KEY (`id`) USING BTREE | ||
); | ||
insert into test_e2e_mysql_db2.tbl3 values (1,'db2_tb3',22); |
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