This is an automated email from the ASF dual-hosted git repository. hellostephen pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push: new 20c49c36389 [regression-test](fix) fix global var (#45917) 20c49c36389 is described below commit 20c49c3638986f349e4e95781c7360c61479fc55 Author: shuke <sh...@selectdb.com> AuthorDate: Wed Dec 25 15:29:40 2024 +0800 [regression-test](fix) fix global var (#45917) --- regression-test/suites/account_p0/test_alter_user.groovy | 2 +- .../suites/compaction/compaction_width_array_column.groovy | 8 ++++---- .../test_base_compaction_with_dup_key_max_file_size_limit.groovy | 8 ++++---- .../compaction/test_single_compaction_fault_injection.groovy | 6 +++--- .../suites/compaction/test_single_replica_compaction.groovy | 6 +++--- .../test_partial_update_publish_conflict_with_error.groovy | 6 +++--- .../fault_injection_p0/test_calc_crc_fault_injection.groovy | 2 +- .../suites/fault_injection_p0/test_delete_from_timeout.groovy | 2 +- .../fault_injection_p0/test_full_compaciton_run_status.groovy | 2 +- .../test_full_compaction_with_ordered_data.groovy | 2 +- .../fault_injection_p0/test_segcompaction_fault_injection.groovy | 2 +- .../test_too_many_segments_fault_injection.groovy | 2 +- .../suites/fault_injection_p0/test_variant_bloom_filter.groovy | 2 +- .../need_read_data/test_dup_table_inverted_index.groovy | 2 +- regression-test/suites/inverted_index_p1/test_show_data.groovy | 2 +- regression-test/suites/opensky_p2/load.groovy | 2 +- regression-test/suites/schema_change_p2/test_schema_change.groovy | 2 +- regression-test/suites/ssb_sf0.1_p1/load.groovy | 2 +- regression-test/suites/ssb_sf100_p2/load.groovy | 2 +- regression-test/suites/ssb_sf1_p2/load.groovy | 2 +- regression-test/suites/ssb_sf1_p2/nereids/q1.1.groovy | 2 +- regression-test/suites/ssb_sf1_p2/nereids/q1.2.groovy | 2 +- regression-test/suites/ssb_sf1_p2/nereids/q1.3.groovy | 2 +- regression-test/suites/ssb_sf1_p2/nereids/q2.1.groovy | 2 +- regression-test/suites/ssb_sf1_p2/nereids/q2.2.groovy | 2 +- regression-test/suites/ssb_sf1_p2/nereids/q2.3.groovy | 2 +- regression-test/suites/ssb_sf1_p2/nereids/q3.1.groovy | 2 +- regression-test/suites/ssb_sf1_p2/nereids/q3.2.groovy | 2 +- regression-test/suites/ssb_sf1_p2/nereids/q3.3.groovy | 2 +- regression-test/suites/ssb_sf1_p2/nereids/q3.4.groovy | 2 +- regression-test/suites/ssb_sf1_p2/nereids/q4.1.groovy | 2 +- regression-test/suites/ssb_sf1_p2/nereids/q4.2.groovy | 2 +- regression-test/suites/ssb_sf1_p2/nereids/q4.3.groovy | 2 +- regression-test/suites/tpcds_sf1_unique_p1/query46.groovy | 2 +- .../ssb_unique_load_zstd/four/load_four_step.groovy | 2 +- .../ssb_unique_load_zstd/one/load_one_step.groovy | 2 +- .../ssb_unique_load_zstd/three/load_three_step.groovy | 2 +- .../ssb_unique_load_zstd/two/load_two_step.groovy | 2 +- regression-test/suites/variant_log_data_p2/load.groovy | 2 +- 39 files changed, 51 insertions(+), 51 deletions(-) diff --git a/regression-test/suites/account_p0/test_alter_user.groovy b/regression-test/suites/account_p0/test_alter_user.groovy index 7a2c4649a06..fc4b8a12bf2 100644 --- a/regression-test/suites/account_p0/test_alter_user.groovy +++ b/regression-test/suites/account_p0/test_alter_user.groovy @@ -170,7 +170,7 @@ suite("test_alter_user", "account,nonConcurrent") { } sleep(6000) sql """set password for 'test_auth_user4' = password('123')""" - result2 = connect('test_auth_user4', '123', context.config.jdbcUrl) { + def result2 = connect('test_auth_user4', '123', context.config.jdbcUrl) { sql 'select 1' } sleep(6000) diff --git a/regression-test/suites/compaction/compaction_width_array_column.groovy b/regression-test/suites/compaction/compaction_width_array_column.groovy index d433e81f555..570877cfc4c 100644 --- a/regression-test/suites/compaction/compaction_width_array_column.groovy +++ b/regression-test/suites/compaction/compaction_width_array_column.groovy @@ -56,13 +56,13 @@ suite('compaction_width_array_column', "p2") { } def table_load_task = { table_name -> - uniqueID = Math.abs(UUID.randomUUID().hashCode()).toString() - loadLabel = table_name + "_" + uniqueID + def uniqueID = Math.abs(UUID.randomUUID().hashCode()).toString() + def loadLabel = table_name + "_" + uniqueID //loadLabel = table_name + '_load_5' - loadSql = new File("""${context.file.parent}/ddl/${table_name}_load.sql""").text.replaceAll("\\\$\\{s3BucketName\\}", s3BucketName) + def loadSql = new File("""${context.file.parent}/ddl/${table_name}_load.sql""").text.replaceAll("\\\$\\{s3BucketName\\}", s3BucketName) loadSql = loadSql.replaceAll("\\\$\\{loadLabel\\}", loadLabel) loadSql = loadSql.replaceAll("\\\$\\{table\\_name\\}", table_name) - nowloadSql = loadSql + s3WithProperties + def nowloadSql = loadSql + s3WithProperties try_sql nowloadSql while (true) { diff --git a/regression-test/suites/compaction/test_base_compaction_with_dup_key_max_file_size_limit.groovy b/regression-test/suites/compaction/test_base_compaction_with_dup_key_max_file_size_limit.groovy index fdaa83a4b31..c798256aa0d 100644 --- a/regression-test/suites/compaction/test_base_compaction_with_dup_key_max_file_size_limit.groovy +++ b/regression-test/suites/compaction/test_base_compaction_with_dup_key_max_file_size_limit.groovy @@ -96,10 +96,10 @@ suite("test_base_compaction_with_dup_key_max_file_size_limit", "p2") { String command = sb.toString() logger.info(command) - process = command.execute() - code = process.waitFor() - err = IOGroovyMethods.getText(new BufferedReader(new InputStreamReader(process.getErrorStream()))); - out = process.getText() + def process = command.execute() + def code = process.waitFor() + def err = IOGroovyMethods.getText(new BufferedReader(new InputStreamReader(process.getErrorStream()))); + def out = process.getText() logger.info("Run compaction: code=" + code + ", out=" + out + ", disableAutoCompaction " + disableAutoCompaction + ", err=" + err) if (!disableAutoCompaction) { return "Success, " + out diff --git a/regression-test/suites/compaction/test_single_compaction_fault_injection.groovy b/regression-test/suites/compaction/test_single_compaction_fault_injection.groovy index 839bfaa10dd..d0ae5355b06 100644 --- a/regression-test/suites/compaction/test_single_compaction_fault_injection.groovy +++ b/regression-test/suites/compaction/test_single_compaction_fault_injection.groovy @@ -86,9 +86,9 @@ suite("test_single_compaction_fault_injection", "p2, nonConcurrent") { String command = sb.toString() logger.info(command) - process = command.execute() - code = process.waitFor() - out = process.getText() + def process = command.execute() + def code = process.waitFor() + def out = process.getText() logger.info("Get compaction status: code=" + code + ", out=" + out) assertEquals(code, 0) def compactionStatus = parseJson(out.trim()) diff --git a/regression-test/suites/compaction/test_single_replica_compaction.groovy b/regression-test/suites/compaction/test_single_replica_compaction.groovy index 05286a6fa19..2a6d6a7caa9 100644 --- a/regression-test/suites/compaction/test_single_replica_compaction.groovy +++ b/regression-test/suites/compaction/test_single_replica_compaction.groovy @@ -93,9 +93,9 @@ suite("test_single_compaction_p2", "p2") { String command = sb.toString() logger.info(command) - process = command.execute() - code = process.waitFor() - out = process.getText() + def process = command.execute() + def code = process.waitFor() + def out = process.getText() logger.info("Get compaction status: code=" + code + ", out=" + out) assertEquals(code, 0) def compactionStatus = parseJson(out.trim()) diff --git a/regression-test/suites/fault_injection_p0/partial_update/test_partial_update_publish_conflict_with_error.groovy b/regression-test/suites/fault_injection_p0/partial_update/test_partial_update_publish_conflict_with_error.groovy index 9e61dd4eb0d..631522beb18 100644 --- a/regression-test/suites/fault_injection_p0/partial_update/test_partial_update_publish_conflict_with_error.groovy +++ b/regression-test/suites/fault_injection_p0/partial_update/test_partial_update_publish_conflict_with_error.groovy @@ -79,9 +79,9 @@ suite("test_partial_update_publish_conflict_with_error", "nonConcurrent") { log.info("http_stream execute 2pc: ${command}") def process = command.execute() - code = process.waitFor() - out = process.text - json2pc = parseJson(out) + def code = process.waitFor() + def out = process.text + def json2pc = parseJson(out) log.info("http_stream 2pc result: ${out}".toString()) assertEquals(code, 0) assertEquals("success", json2pc.status.toLowerCase()) diff --git a/regression-test/suites/fault_injection_p0/test_calc_crc_fault_injection.groovy b/regression-test/suites/fault_injection_p0/test_calc_crc_fault_injection.groovy index d3a1e07f52c..4a193702389 100644 --- a/regression-test/suites/fault_injection_p0/test_calc_crc_fault_injection.groovy +++ b/regression-test/suites/fault_injection_p0/test_calc_crc_fault_injection.groovy @@ -60,7 +60,7 @@ suite("test_calc_crc", "nonConcurrent") { sql """ INSERT INTO ${tableName} VALUES (3, "andy", 100); """ sql """ INSERT INTO ${tableName} VALUES (3, "bason", 99); """ - tablets = sql_return_maparray """ show tablets from ${tableName}; """ + def tablets = sql_return_maparray """ show tablets from ${tableName}; """ String tablet_id = tablets[0].TabletId String backend_id = tablets[0].BackendId String ip = backendId_to_backendIP.get(backend_id) diff --git a/regression-test/suites/fault_injection_p0/test_delete_from_timeout.groovy b/regression-test/suites/fault_injection_p0/test_delete_from_timeout.groovy index 8598d791e01..b15309891da 100644 --- a/regression-test/suites/fault_injection_p0/test_delete_from_timeout.groovy +++ b/regression-test/suites/fault_injection_p0/test_delete_from_timeout.groovy @@ -48,7 +48,7 @@ suite("test_delete_from_timeout","nonConcurrent") { GetDebugPoint().enableDebugPointForAllBEs("PushHandler::_do_streaming_ingestion.try_lock_fail") - t1 = Thread.start { + def t1 = Thread.start { sleep(15000) GetDebugPoint().disableDebugPointForAllBEs("PushHandler::_do_streaming_ingestion.try_lock_fail") } diff --git a/regression-test/suites/fault_injection_p0/test_full_compaciton_run_status.groovy b/regression-test/suites/fault_injection_p0/test_full_compaciton_run_status.groovy index 0a5484dd115..721198f6e47 100644 --- a/regression-test/suites/fault_injection_p0/test_full_compaciton_run_status.groovy +++ b/regression-test/suites/fault_injection_p0/test_full_compaciton_run_status.groovy @@ -64,7 +64,7 @@ suite("test_full_compaction_run_status","nonConcurrent") { String tablet_id = tablet.TabletId backend_id = tablet.BackendId - times = 1 + def times = 1 do{ (code, out, err) = be_run_full_compaction(backendId_to_backendIP.get(backend_id), backendId_to_backendHttpPort.get(backend_id), tablet_id) logger.info("Run compaction: code=" + code + ", out=" + out + ", err=" + err) diff --git a/regression-test/suites/fault_injection_p0/test_full_compaction_with_ordered_data.groovy b/regression-test/suites/fault_injection_p0/test_full_compaction_with_ordered_data.groovy index c060888690c..23865019561 100644 --- a/regression-test/suites/fault_injection_p0/test_full_compaction_with_ordered_data.groovy +++ b/regression-test/suites/fault_injection_p0/test_full_compaction_with_ordered_data.groovy @@ -116,7 +116,7 @@ suite("test_full_compaction_with_ordered_data","nonConcurrent") { int rowsetCount = 0 for (def tablet in tablets) { String tablet_id = tablet.TabletId - (code, out, err) = curl("GET", tablet.CompactionStatus) + def (code, out, err) = curl("GET", tablet.CompactionStatus) logger.info("Show tablets status: code=" + code + ", out=" + out + ", err=" + err) assertEquals(code, 0) def tabletJson = parseJson(out.trim()) diff --git a/regression-test/suites/fault_injection_p0/test_segcompaction_fault_injection.groovy b/regression-test/suites/fault_injection_p0/test_segcompaction_fault_injection.groovy index b37ac4797df..9c06c107320 100644 --- a/regression-test/suites/fault_injection_p0/test_segcompaction_fault_injection.groovy +++ b/regression-test/suites/fault_injection_p0/test_segcompaction_fault_injection.groovy @@ -91,7 +91,7 @@ suite("test_segcompaction_correctness", "nonConcurrent,p2") { result = sql """ show load where label="$uuid" order by createtime desc limit 1; """ qt_select_default """ SELECT * FROM ${tableName} WHERE col_0=47 order by col_1, col_2; """ - tablets = sql """ show tablets from ${tableName}; """ + def tablets = sql """ show tablets from ${tableName}; """ } finally { try_sql("DROP TABLE IF EXISTS ${tableName}") } diff --git a/regression-test/suites/fault_injection_p0/test_too_many_segments_fault_injection.groovy b/regression-test/suites/fault_injection_p0/test_too_many_segments_fault_injection.groovy index 6556c792a67..d7ede7028ce 100644 --- a/regression-test/suites/fault_injection_p0/test_too_many_segments_fault_injection.groovy +++ b/regression-test/suites/fault_injection_p0/test_too_many_segments_fault_injection.groovy @@ -96,7 +96,7 @@ suite("test_too_many_segments", "nonConcurrent,p2") { // the epic -238 case result = sql """ show load where label="$uuid" order by createtime desc limit 1; """ qt_select_default """ SELECT * FROM ${tableName} WHERE col_0=47 order by col_1, col_2; """ - tablets = sql """ show tablets from ${tableName}; """ + def tablets = sql """ show tablets from ${tableName}; """ } finally { try_sql("DROP TABLE IF EXISTS ${tableName}") GetDebugPoint().disableDebugPointForAllBEs("BetaRowsetWriter._check_segment_number_limit_too_many_segments") diff --git a/regression-test/suites/fault_injection_p0/test_variant_bloom_filter.groovy b/regression-test/suites/fault_injection_p0/test_variant_bloom_filter.groovy index e1e1e051ec1..d5ffd070003 100644 --- a/regression-test/suites/fault_injection_p0/test_variant_bloom_filter.groovy +++ b/regression-test/suites/fault_injection_p0/test_variant_bloom_filter.groovy @@ -76,7 +76,7 @@ suite("test_variant_bloom_filter", "nonConcurrent") { for (def tablet in tablets) { int beforeSegmentCount = 0 String tablet_id = tablet.TabletId - (code, out, err) = curl("GET", tablet.CompactionStatus) + def (code, out, err) = curl("GET", tablet.CompactionStatus) logger.info("Show tablets status: code=" + code + ", out=" + out + ", err=" + err) assertEquals(code, 0) def tabletJson = parseJson(out.trim()) diff --git a/regression-test/suites/inverted_index_p1/need_read_data/test_dup_table_inverted_index.groovy b/regression-test/suites/inverted_index_p1/need_read_data/test_dup_table_inverted_index.groovy index 83b60699419..962ac7f7d3f 100644 --- a/regression-test/suites/inverted_index_p1/need_read_data/test_dup_table_inverted_index.groovy +++ b/regression-test/suites/inverted_index_p1/need_read_data/test_dup_table_inverted_index.groovy @@ -42,7 +42,7 @@ suite("test_dup_table_inverted_index", "p1") { def execute_sql = { key, value, sqlList -> sql """ set ${key} = ${value} """ List<Object> resultList = new ArrayList<>() - for (sqlStr in sqlList) { + for (def sqlStr in sqlList) { def sqlResult = sql """ ${sqlStr} """ resultList.add(sqlResult) } diff --git a/regression-test/suites/inverted_index_p1/test_show_data.groovy b/regression-test/suites/inverted_index_p1/test_show_data.groovy index 210c9477f57..a687e71d60c 100644 --- a/regression-test/suites/inverted_index_p1/test_show_data.groovy +++ b/regression-test/suites/inverted_index_p1/test_show_data.groovy @@ -549,7 +549,7 @@ suite("test_show_data_with_compaction", "p1") { def backendId_to_backendHttpPort = [:] getBackendIpHttpPort(backendId_to_backendIP, backendId_to_backendHttpPort); - backend_id = backendId_to_backendIP.keySet()[0] + def backend_id = backendId_to_backendIP.keySet()[0] def (code, out, err) = show_be_config(backendId_to_backendIP.get(backend_id), backendId_to_backendHttpPort.get(backend_id)) logger.info("Show config: code=" + code + ", out=" + out + ", err=" + err) diff --git a/regression-test/suites/opensky_p2/load.groovy b/regression-test/suites/opensky_p2/load.groovy index 9874a8bfb4a..d5f675dbeb9 100644 --- a/regression-test/suites/opensky_p2/load.groovy +++ b/regression-test/suites/opensky_p2/load.groovy @@ -24,7 +24,7 @@ suite("load"){ sql """ DROP TABLE IF EXISTS $tableName """ - scriptDir = new File(getClass().protectionDomain.codeSource.location.path).parent + def scriptDir = new File(getClass().protectionDomain.codeSource.location.path).parent sql new File("""${scriptDir}/ddl/${tableName}.sql""").text diff --git a/regression-test/suites/schema_change_p2/test_schema_change.groovy b/regression-test/suites/schema_change_p2/test_schema_change.groovy index e64e1d0bfa1..d18b3876924 100644 --- a/regression-test/suites/schema_change_p2/test_schema_change.groovy +++ b/regression-test/suites/schema_change_p2/test_schema_change.groovy @@ -83,7 +83,7 @@ suite("test_schema_change") { waitBrokerLoadJob(loadLabel) sql "sync" - rowCount = sql "select count(*) from ${tableName}" + def rowCount = sql "select count(*) from ${tableName}" logger.info("rowCount:{}", rowCount) assertEquals(rowCount[0][0], 15000000) diff --git a/regression-test/suites/ssb_sf0.1_p1/load.groovy b/regression-test/suites/ssb_sf0.1_p1/load.groovy index 3b3955dc3ac..240bd8a1396 100644 --- a/regression-test/suites/ssb_sf0.1_p1/load.groovy +++ b/regression-test/suites/ssb_sf0.1_p1/load.groovy @@ -89,7 +89,7 @@ suite("load") { sql new File("""${context.file.parent}/ddl/${table}_delete.sql""").text sql "set insert_timeout=3600" def r = sql "select @@insert_timeout" - year_cons = [ + def year_cons = [ 'lo_orderdate<19930101', 'lo_orderdate>=19930101 and lo_orderdate<19940101', 'lo_orderdate>=19940101 and lo_orderdate<19950101', diff --git a/regression-test/suites/ssb_sf100_p2/load.groovy b/regression-test/suites/ssb_sf100_p2/load.groovy index e121a6fa17d..b277d13c2f9 100644 --- a/regression-test/suites/ssb_sf100_p2/load.groovy +++ b/regression-test/suites/ssb_sf100_p2/load.groovy @@ -81,7 +81,7 @@ suite('load') { sql "sync" def r = sql "select @@insert_timeout" assertEquals(3600, r[0][0]) - year_cons = [ + def year_cons = [ 'lo_orderdate<19930101', 'lo_orderdate>=19930101 and lo_orderdate<19940101', 'lo_orderdate>=19940101 and lo_orderdate<19950101', diff --git a/regression-test/suites/ssb_sf1_p2/load.groovy b/regression-test/suites/ssb_sf1_p2/load.groovy index 383844e120c..694f22c5b65 100644 --- a/regression-test/suites/ssb_sf1_p2/load.groovy +++ b/regression-test/suites/ssb_sf1_p2/load.groovy @@ -92,7 +92,7 @@ suite("load") { sql "set insert_timeout=3600" def r = sql "select @@insert_timeout" assertEquals(3600, r[0][0]) - year_cons = [ + def year_cons = [ 'lo_orderdate<19930101', 'lo_orderdate>=19930101 and lo_orderdate<19940101', 'lo_orderdate>=19940101 and lo_orderdate<19950101', diff --git a/regression-test/suites/ssb_sf1_p2/nereids/q1.1.groovy b/regression-test/suites/ssb_sf1_p2/nereids/q1.1.groovy index a24de2297df..6e495a15b57 100644 --- a/regression-test/suites/ssb_sf1_p2/nereids/q1.1.groovy +++ b/regression-test/suites/ssb_sf1_p2/nereids/q1.1.groovy @@ -38,6 +38,6 @@ suite("ssb_sf1_q1_1_nereids") { AND lo_quantity < 25; """ - resultFile(file = "../sql/q1.1.out", tag = "q1.1") + resultFile("../sql/q1.1.out", "q1.1") } } diff --git a/regression-test/suites/ssb_sf1_p2/nereids/q1.2.groovy b/regression-test/suites/ssb_sf1_p2/nereids/q1.2.groovy index ca73f3a4e4c..fa4e1ce3017 100644 --- a/regression-test/suites/ssb_sf1_p2/nereids/q1.2.groovy +++ b/regression-test/suites/ssb_sf1_p2/nereids/q1.2.groovy @@ -39,6 +39,6 @@ suite("ssb_sf1_q1_2_nereids") { AND lo_discount BETWEEN 4 AND 6 AND lo_quantity BETWEEN 26 AND 35;""" - resultFile(file = "../sql/q1.2.out", tag = "q1.2") + resultFile("../sql/q1.2.out", "q1.2") } } diff --git a/regression-test/suites/ssb_sf1_p2/nereids/q1.3.groovy b/regression-test/suites/ssb_sf1_p2/nereids/q1.3.groovy index b0af2bed329..aa11b87851f 100644 --- a/regression-test/suites/ssb_sf1_p2/nereids/q1.3.groovy +++ b/regression-test/suites/ssb_sf1_p2/nereids/q1.3.groovy @@ -40,6 +40,6 @@ suite("ssb_sf1_q1_3_nereids") { AND lo_quantity BETWEEN 26 AND 35; """ - resultFile(file = "../sql/q1.3.out", tag = "q1.3") + resultFile("../sql/q1.3.out", "q1.3") } } diff --git a/regression-test/suites/ssb_sf1_p2/nereids/q2.1.groovy b/regression-test/suites/ssb_sf1_p2/nereids/q2.1.groovy index dd76b45cb81..b58a18fa2ad 100644 --- a/regression-test/suites/ssb_sf1_p2/nereids/q2.1.groovy +++ b/regression-test/suites/ssb_sf1_p2/nereids/q2.1.groovy @@ -41,6 +41,6 @@ suite("ssb_sf1_q2_1_nereids") { ORDER BY d_year, p_brand; """ - resultFile(file = "../sql/q2.1.out", tag = "q2.1") + resultFile("../sql/q2.1.out", "q2.1") } } diff --git a/regression-test/suites/ssb_sf1_p2/nereids/q2.2.groovy b/regression-test/suites/ssb_sf1_p2/nereids/q2.2.groovy index 712744acb67..d74b567899a 100644 --- a/regression-test/suites/ssb_sf1_p2/nereids/q2.2.groovy +++ b/regression-test/suites/ssb_sf1_p2/nereids/q2.2.groovy @@ -42,6 +42,6 @@ suite("ssb_sf1_q2_2_nereids") { ORDER BY d_year, p_brand; """ - resultFile(file = "../sql/q2.2.out", tag = "q2.2") + resultFile("../sql/q2.2.out", "q2.2") } } diff --git a/regression-test/suites/ssb_sf1_p2/nereids/q2.3.groovy b/regression-test/suites/ssb_sf1_p2/nereids/q2.3.groovy index e72a28730f8..75ab8fb9c92 100644 --- a/regression-test/suites/ssb_sf1_p2/nereids/q2.3.groovy +++ b/regression-test/suites/ssb_sf1_p2/nereids/q2.3.groovy @@ -40,6 +40,6 @@ suite("ssb_sf1_q2_3_nereids") { ORDER BY d_year, p_brand; """ - resultFile(file = "../sql/q2.3.out", tag = "q2.3") + resultFile("../sql/q2.3.out", "q2.3") } } diff --git a/regression-test/suites/ssb_sf1_p2/nereids/q3.1.groovy b/regression-test/suites/ssb_sf1_p2/nereids/q3.1.groovy index a9ec4fa77e0..7e796db9209 100644 --- a/regression-test/suites/ssb_sf1_p2/nereids/q3.1.groovy +++ b/regression-test/suites/ssb_sf1_p2/nereids/q3.1.groovy @@ -41,6 +41,6 @@ suite("ssb_sf1_q3_1_nereids") { GROUP BY c_nation, s_nation, d_year ORDER BY d_year ASC, REVENUE DESC;""" - resultFile(file = "../sql/q3.1.out", tag = "q3.1") + resultFile("../sql/q3.1.out", "q3.1") } } diff --git a/regression-test/suites/ssb_sf1_p2/nereids/q3.2.groovy b/regression-test/suites/ssb_sf1_p2/nereids/q3.2.groovy index 34687e3bbbf..4211608dbe8 100644 --- a/regression-test/suites/ssb_sf1_p2/nereids/q3.2.groovy +++ b/regression-test/suites/ssb_sf1_p2/nereids/q3.2.groovy @@ -42,6 +42,6 @@ suite("ssb_sf1_q3_2_nereids") { ORDER BY d_year ASC, REVENUE DESC; """ - resultFile(file = "../sql/q3.2.out", tag = "q3.2") + resultFile("../sql/q3.2.out", "q3.2") } } diff --git a/regression-test/suites/ssb_sf1_p2/nereids/q3.3.groovy b/regression-test/suites/ssb_sf1_p2/nereids/q3.3.groovy index b7edd51750f..89f726676d2 100644 --- a/regression-test/suites/ssb_sf1_p2/nereids/q3.3.groovy +++ b/regression-test/suites/ssb_sf1_p2/nereids/q3.3.groovy @@ -43,6 +43,6 @@ suite("ssb_sf1_q3_3_nereids") { GROUP BY c_city, s_city, d_year ORDER BY d_year ASC, REVENUE DESC;""" - resultFile(file = "../sql/q3.3.out", tag = "q3.3") + resultFile("../sql/q3.3.out", "q3.3") } } diff --git a/regression-test/suites/ssb_sf1_p2/nereids/q3.4.groovy b/regression-test/suites/ssb_sf1_p2/nereids/q3.4.groovy index dd685db92ed..371c472255f 100644 --- a/regression-test/suites/ssb_sf1_p2/nereids/q3.4.groovy +++ b/regression-test/suites/ssb_sf1_p2/nereids/q3.4.groovy @@ -43,6 +43,6 @@ suite("ssb_sf1_q3_4_nereids") { GROUP BY c_city, s_city, d_year ORDER BY d_year ASC, REVENUE DESC;""" - resultFile(file = "../sql/q3.4.out", tag = "q3.4") + resultFile("../sql/q3.4.out", "q3.4") } } diff --git a/regression-test/suites/ssb_sf1_p2/nereids/q4.1.groovy b/regression-test/suites/ssb_sf1_p2/nereids/q4.1.groovy index e88cba1a35d..2e32b89e905 100644 --- a/regression-test/suites/ssb_sf1_p2/nereids/q4.1.groovy +++ b/regression-test/suites/ssb_sf1_p2/nereids/q4.1.groovy @@ -45,6 +45,6 @@ suite("ssb_sf1_q4_1_nereids") { ORDER BY d_year, c_nation; """ - resultFile(file = "../sql/q4.1.out", tag = "q4.1") + resultFile("../sql/q4.1.out", "q4.1") } } diff --git a/regression-test/suites/ssb_sf1_p2/nereids/q4.2.groovy b/regression-test/suites/ssb_sf1_p2/nereids/q4.2.groovy index d4cc3c96c03..20a50b51957 100644 --- a/regression-test/suites/ssb_sf1_p2/nereids/q4.2.groovy +++ b/regression-test/suites/ssb_sf1_p2/nereids/q4.2.groovy @@ -44,6 +44,6 @@ suite("ssb_sf1_q4_2_nereids") { GROUP BY d_year, s_nation, p_category ORDER BY d_year, s_nation, p_category;""" - resultFile(file = "../sql/q4.2.out", tag = "q4.2") + resultFile("../sql/q4.2.out", "q4.2") } } diff --git a/regression-test/suites/ssb_sf1_p2/nereids/q4.3.groovy b/regression-test/suites/ssb_sf1_p2/nereids/q4.3.groovy index e01a5090a27..b0af8df5cce 100644 --- a/regression-test/suites/ssb_sf1_p2/nereids/q4.3.groovy +++ b/regression-test/suites/ssb_sf1_p2/nereids/q4.3.groovy @@ -42,6 +42,6 @@ suite("ssb_sf1_q4_3_nereids") { GROUP BY d_year, s_city, p_brand ORDER BY d_year, s_city, p_brand;""" - resultFile(file = "../sql/q4.3.out", tag = "q4.3") + resultFile("../sql/q4.3.out", "q4.3") } } diff --git a/regression-test/suites/tpcds_sf1_unique_p1/query46.groovy b/regression-test/suites/tpcds_sf1_unique_p1/query46.groovy index f5a6a40d5a8..bf10aa36544 100644 --- a/regression-test/suites/tpcds_sf1_unique_p1/query46.groovy +++ b/regression-test/suites/tpcds_sf1_unique_p1/query46.groovy @@ -26,7 +26,7 @@ suite("tpcds_sf1_unique_p1_q46") { logger.info("${stats}") stats = sql "show column stats customer_address" logger.info("${stats}") - ds46 = """ + def ds46 = """ SELECT c_last_name , c_first_name diff --git a/regression-test/suites/unique_with_mow_p2/ssb_unique_load_zstd/four/load_four_step.groovy b/regression-test/suites/unique_with_mow_p2/ssb_unique_load_zstd/four/load_four_step.groovy index f75d7710bf7..0f0b9d30801 100644 --- a/regression-test/suites/unique_with_mow_p2/ssb_unique_load_zstd/four/load_four_step.groovy +++ b/regression-test/suites/unique_with_mow_p2/ssb_unique_load_zstd/four/load_four_step.groovy @@ -69,7 +69,7 @@ suite("load_four_step") { } sleep(5000) } - rowCount = sql "select count(*) from ${tableName}" + def rowCount = sql "select count(*) from ${tableName}" assertEquals(rows[1], rowCount[0][0]) } diff --git a/regression-test/suites/unique_with_mow_p2/ssb_unique_load_zstd/one/load_one_step.groovy b/regression-test/suites/unique_with_mow_p2/ssb_unique_load_zstd/one/load_one_step.groovy index 1035fe2865a..9cd7322fad9 100644 --- a/regression-test/suites/unique_with_mow_p2/ssb_unique_load_zstd/one/load_one_step.groovy +++ b/regression-test/suites/unique_with_mow_p2/ssb_unique_load_zstd/one/load_one_step.groovy @@ -63,7 +63,7 @@ suite("load_one_step") { } sleep(5000) } - rowCount = sql "select count(*) from ${tableName}" + def rowCount = sql "select count(*) from ${tableName}" assertEquals(rows[1], rowCount[0][0]) } } diff --git a/regression-test/suites/unique_with_mow_p2/ssb_unique_load_zstd/three/load_three_step.groovy b/regression-test/suites/unique_with_mow_p2/ssb_unique_load_zstd/three/load_three_step.groovy index a3553068e76..5fdea14054c 100644 --- a/regression-test/suites/unique_with_mow_p2/ssb_unique_load_zstd/three/load_three_step.groovy +++ b/regression-test/suites/unique_with_mow_p2/ssb_unique_load_zstd/three/load_three_step.groovy @@ -66,7 +66,7 @@ suite("load_three_step") { } sleep(5000) } - rowCount = sql "select count(*) from ${tableName}" + def rowCount = sql "select count(*) from ${tableName}" assertEquals(rows[1], rowCount[0][0]) } diff --git a/regression-test/suites/unique_with_mow_p2/ssb_unique_load_zstd/two/load_two_step.groovy b/regression-test/suites/unique_with_mow_p2/ssb_unique_load_zstd/two/load_two_step.groovy index 1077d2977ff..b07c5434474 100644 --- a/regression-test/suites/unique_with_mow_p2/ssb_unique_load_zstd/two/load_two_step.groovy +++ b/regression-test/suites/unique_with_mow_p2/ssb_unique_load_zstd/two/load_two_step.groovy @@ -63,7 +63,7 @@ suite("load_two_step") { } sleep(5000) } - rowCount = sql "select count(*) from ${tableName}" + def rowCount = sql "select count(*) from ${tableName}" assertEquals(rows[1], rowCount[0][0]) // step 2: delete all data diff --git a/regression-test/suites/variant_log_data_p2/load.groovy b/regression-test/suites/variant_log_data_p2/load.groovy index cbb45c46e21..5c0370fd447 100644 --- a/regression-test/suites/variant_log_data_p2/load.groovy +++ b/regression-test/suites/variant_log_data_p2/load.groovy @@ -68,7 +68,7 @@ suite("regression_test_variant_logdata", "nonConcurrent,p2"){ """ } // 12. streamload remote file - table_name = "logdata" + def table_name = "logdata" create_table.call(table_name, "DUPLICATE", "4") // sql "set enable_two_phase_read_opt = false;" // no sparse columns --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org