From 570b0e40f8428c1f555e12cb2471b15ff1a36d27 Mon Sep 17 00:00:00 2001 From: cjj2010 <2449402815@qq.com> Date: Wed, 28 Aug 2024 14:52:55 +0800 Subject: [PATCH] [fix](regression-test) Multi threaded testing --- .../schema_change_p0/test_agg_schema_value_modify2.groovy | 2 ++ .../schema_change_p0/test_dup_schema_value_modify2.groovy | 3 ++- .../schema_change_p0/test_dup_schema_value_modify3.groovy | 2 -- .../schema_change_p0/test_dup_schema_value_modify4.groovy | 1 - .../test_unique_schema_key_change_modify.groovy | 3 ++- .../schema_change_p0/test_unique_schema_value_drop.groovy | 1 - .../schema_change_p0/test_unique_schema_value_modify2.groovy | 2 ++ 7 files changed, 8 insertions(+), 6 deletions(-) diff --git a/regression-test/suites/schema_change_p0/test_agg_schema_value_modify2.groovy b/regression-test/suites/schema_change_p0/test_agg_schema_value_modify2.groovy index 4587516cec7fb1..2489ba3c5d6076 100644 --- a/regression-test/suites/schema_change_p0/test_agg_schema_value_modify2.groovy +++ b/regression-test/suites/schema_change_p0/test_agg_schema_value_modify2.groovy @@ -51,6 +51,8 @@ suite("test_agg_schema_value_modify2", "p0") { def getTableStatusSql = " SHOW ALTER TABLE COLUMN WHERE IndexName='${tbName1}' ORDER BY createtime DESC LIMIT 1 " def errorMessage = "" def insertSql = "insert into ${tbName1} values(923456689, 'Alice', '四川省', 'Yaan', 25, 0, 13812345678, 'No. 123 Street, Beijing', '2022-01-01 10:00:00');" + def initTable1 = "" + def initTableData1 = "" /** diff --git a/regression-test/suites/schema_change_p0/test_dup_schema_value_modify2.groovy b/regression-test/suites/schema_change_p0/test_dup_schema_value_modify2.groovy index c687bb6b87f57b..f1c3e1b1228a44 100644 --- a/regression-test/suites/schema_change_p0/test_dup_schema_value_modify2.groovy +++ b/regression-test/suites/schema_change_p0/test_dup_schema_value_modify2.groovy @@ -51,7 +51,8 @@ suite("test_dup_schema_value_modify2", "p0") { def getTableStatusSql = " SHOW ALTER TABLE COLUMN WHERE IndexName='${tbName1}' ORDER BY createtime DESC LIMIT 1 " def errorMessage = "" def insertSql = "insert into ${tbName1} values(923456689, 'Alice', '四川省', 'Yaan', 25, 0, 13812345678, 'No. 123 Street, Beijing', '2022-01-01 10:00:00');" - + def initTable1 = "" + def initTableData1 = "" /** * Test the dup model by modify a value type from CHAR to other type diff --git a/regression-test/suites/schema_change_p0/test_dup_schema_value_modify3.groovy b/regression-test/suites/schema_change_p0/test_dup_schema_value_modify3.groovy index 5d983f1339fa64..ddac0e19a04ee1 100644 --- a/regression-test/suites/schema_change_p0/test_dup_schema_value_modify3.groovy +++ b/regression-test/suites/schema_change_p0/test_dup_schema_value_modify3.groovy @@ -25,8 +25,6 @@ suite("test_dup_schema_value_modify3", "p0") { /** * Test the dup model by modify a value type */ - def initTable2 = "" - def initTableData2 = "" sql """ DROP TABLE IF EXISTS ${tbName1} """ def initTable = " CREATE TABLE IF NOT EXISTS ${tbName1}\n" + " (\n" + diff --git a/regression-test/suites/schema_change_p0/test_dup_schema_value_modify4.groovy b/regression-test/suites/schema_change_p0/test_dup_schema_value_modify4.groovy index 728b293404e446..56870568ad78c3 100644 --- a/regression-test/suites/schema_change_p0/test_dup_schema_value_modify4.groovy +++ b/regression-test/suites/schema_change_p0/test_dup_schema_value_modify4.groovy @@ -52,7 +52,6 @@ suite("test_dup_schema_value_modify4", "p0") { def errorMessage = "" def insertSql = "insert into ${tbName1} values(923456689, 'Alice', '四川省', 'Yaan', 25, 0, 13812345678, 'No. 123 Street, Beijing', '2022-01-01 10:00:00');" - /** * Test the dup model by modify a value type from MAP to other type */ diff --git a/regression-test/suites/schema_change_p0/test_unique_schema_key_change_modify.groovy b/regression-test/suites/schema_change_p0/test_unique_schema_key_change_modify.groovy index 89f5cc50995fb8..cf43e8387733fd 100644 --- a/regression-test/suites/schema_change_p0/test_unique_schema_key_change_modify.groovy +++ b/regression-test/suites/schema_change_p0/test_unique_schema_key_change_modify.groovy @@ -53,7 +53,8 @@ suite("test_unique_schema_key_change_modify","p0") { " (678901234, 'Frank', 1, 'Hangzhou', 32, 1, 13467985213, 'No. 321 Street, Hangzhou', '2022-06-06 20:00:00')," + " (789012345, 'Grace', 0, 'Xian', 29, 0, 13333333333, 'No. 222 Street, Xian', '2022-07-07 22:00:00');" def insertSql = "" - + def initTable2 = "" + def initTableData2 = "" //TODO Test the unique model by modify a key type from BOOLEAN to TINYINT def errorMessage="errCode = 2, detailMessage = Can not change BOOLEAN to TINYINT" expectException({ diff --git a/regression-test/suites/schema_change_p0/test_unique_schema_value_drop.groovy b/regression-test/suites/schema_change_p0/test_unique_schema_value_drop.groovy index 69a8ea4a811c1c..a804709eb60e3c 100644 --- a/regression-test/suites/schema_change_p0/test_unique_schema_value_drop.groovy +++ b/regression-test/suites/schema_change_p0/test_unique_schema_value_drop.groovy @@ -27,7 +27,6 @@ suite("test_unique_schema_value_drop", "p0") { def errorMessage = "" def insertSql = "insert into ${tbName} values(123456689, 'Alice', '四川省', 'Yaan', 25, 0, 13812345678, 'No. 123 Street, Beijing', '2022-01-01 10:00:00');" - /** * Test the unique model by drop a value type */ diff --git a/regression-test/suites/schema_change_p0/test_unique_schema_value_modify2.groovy b/regression-test/suites/schema_change_p0/test_unique_schema_value_modify2.groovy index afbaea78d1ab6b..63f582920ee70d 100644 --- a/regression-test/suites/schema_change_p0/test_unique_schema_value_modify2.groovy +++ b/regression-test/suites/schema_change_p0/test_unique_schema_value_modify2.groovy @@ -18,6 +18,8 @@ suite("test_unique_schema_value_modify2", "p0") { def tbName = "test_unique_model_value_change2" def tbName2 = "test_unique_model_value_change_2" + def initTable1 = "" + def initTableData1 = "" def on_write = getRandomBoolean() println String.format("current enable_unique_key_merge_on_write is : %s ",on_write) //Test the unique model by adding a value column