Skip to content

Commit

Permalink
[fix](regression-test) Multi threaded testing
Browse files Browse the repository at this point in the history
  • Loading branch information
cjj2010 committed Aug 28, 2024
1 parent 729bd72 commit 570b0e4
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 570b0e4

Please sign in to comment.