From 3ef1485794831abacb104e7b01fb379d27245d5d Mon Sep 17 00:00:00 2001 From: CharlesCheung Date: Mon, 15 May 2023 16:02:25 +0800 Subject: [PATCH] enable tests --- .../data/prepare.sql | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/integration_tests/canal_json_storage_partition_table/data/prepare.sql b/tests/integration_tests/canal_json_storage_partition_table/data/prepare.sql index 9c1ca0aa229..3f2632e1c48 100644 --- a/tests/integration_tests/canal_json_storage_partition_table/data/prepare.sql +++ b/tests/integration_tests/canal_json_storage_partition_table/data/prepare.sql @@ -21,11 +21,11 @@ alter table t1 drop partition p1; insert into t1 values (7),(8),(9); update t1 set a=a+10 where a=9; -/* TODO(CharlesCheung): EXCHANGE PARTITION will be supported in the future */ --- create table t2 (a int primary key); --- ALTER TABLE t1 EXCHANGE PARTITION p3 WITH TABLE t2; --- insert into t2 values (100),(101),(102),(103),(104),(105); /*these values will be replicated to in downstream t2*/ --- insert into t1 values (25),(29); /*these values will be replicated to in downstream t1.p3*/ +/* TODO: add more test for EXCHANGE PARTITION, ref: https://github.com/pingcap/tiflow/issues/8956 */ +create table t2 (a int primary key); +ALTER TABLE t1 EXCHANGE PARTITION p3 WITH TABLE t2; +insert into t2 values (100),(101),(102),(103),(104),(105); /*these values will be replicated to in downstream t2*/ +insert into t1 values (25),(29); /*these values will be replicated to in downstream t1.p3*/ ALTER TABLE t1 REORGANIZE PARTITION p0,p2 INTO (PARTITION p0 VALUES LESS THAN (5), PARTITION p1 VALUES LESS THAN (10), PARTITION p2 VALUES LESS THAN (21)); insert into t1 values (-1),(6),(13);