This is an automated email from the ASF dual-hosted git repository.

kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git

commit 26cfd931eee2115c1cfb084b3294febe103bb050
Author: shuke <37901441+shuke...@users.noreply.github.com>
AuthorDate: Sat Sep 2 21:59:23 2023 +0800

    [regression-test](fix) fix case bug when define local variable (#23785)
---
 regression-test/suites/csv_header_p0/test_csv_with_header.groovy    | 6 +++---
 regression-test/suites/export/test_array_export.groovy              | 2 +-
 regression-test/suites/export/test_map_export.groovy                | 2 +-
 .../suites/mv_p0/test_dup_mv_year/test_dup_mv_year.groovy           | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/regression-test/suites/csv_header_p0/test_csv_with_header.groovy 
b/regression-test/suites/csv_header_p0/test_csv_with_header.groovy
index 855e54edbe..742bdf5242 100644
--- a/regression-test/suites/csv_header_p0/test_csv_with_header.groovy
+++ b/regression-test/suites/csv_header_p0/test_csv_with_header.groovy
@@ -61,7 +61,7 @@ suite("test_csv_with_header") {
     def check_import_result = {checklabel, testTable4, expected_rows->
         max_try_secs = 100000
         while(max_try_secs--) {
-            result = sql "show load where label = '${checklabel}'"
+            def result = sql "show load where label = '${checklabel}'"
             if(result[0][2] == "FINISHED") {
                 sql "sync"
                 result_count = sql "select count(*) from ${testTable4}"
@@ -151,7 +151,7 @@ suite("test_csv_with_header") {
         def check_export_result = {checklabel1->
             max_try_secs = 100000
             while(max_try_secs--) {
-                result = sql "show export where label='${checklabel1}'"
+                def result = sql "show export where label='${checklabel1}'"
                 if(result[0][2] == "FINISHED") {
                     break
                 } else {
@@ -194,7 +194,7 @@ suite("test_csv_with_header") {
         label = UUID.randomUUID().toString().replaceAll("-", "")
         export_to_hdfs.call(testTable, label, hdfsDataDir + "/" + label, 
format_csv_with_names, brokerName, hdfsUser, hdfsPasswd)
         check_export_result(label)
-        result = downloadExportFromHdfs(label + "/export-data")
+        def result = downloadExportFromHdfs(label + "/export-data")
         check_download_result(result, format_csv_with_names, currentTotalRows)
 
         // export table to hdfs format=csv_with_names_and_types
diff --git a/regression-test/suites/export/test_array_export.groovy 
b/regression-test/suites/export/test_array_export.groovy
index 1ee097cefb..5fa96deb1e 100644
--- a/regression-test/suites/export/test_array_export.groovy
+++ b/regression-test/suites/export/test_array_export.groovy
@@ -65,7 +65,7 @@ suite("test_array_export", "export") {
     def create_test_table = {testTablex ->
         sql """ DROP TABLE IF EXISTS ${tableName} """
 
-        result1 = sql """
+        def result1 = sql """
             CREATE TABLE IF NOT EXISTS ${tableName} (
               `k1` INT(11) NULL COMMENT "",
               `k2` ARRAY<SMALLINT> NOT NULL COMMENT "",
diff --git a/regression-test/suites/export/test_map_export.groovy 
b/regression-test/suites/export/test_map_export.groovy
index ba371fb3a1..fdb207f862 100644
--- a/regression-test/suites/export/test_map_export.groovy
+++ b/regression-test/suites/export/test_map_export.groovy
@@ -95,7 +95,7 @@ suite("test_map_export", "export") {
         } else {
             throw new IllegalStateException("""${outFilePath} already exists! 
""")
         }
-        result = sql """
+        def result = sql """
                     SELECT * FROM ${testTable} ORDER BY id INTO OUTFILE 
"file://${outFile}/";
         """
         url = result[0][3]
diff --git 
a/regression-test/suites/mv_p0/test_dup_mv_year/test_dup_mv_year.groovy 
b/regression-test/suites/mv_p0/test_dup_mv_year/test_dup_mv_year.groovy
index 441b37f49a..f4a06ac04c 100644
--- a/regression-test/suites/mv_p0/test_dup_mv_year/test_dup_mv_year.groovy
+++ b/regression-test/suites/mv_p0/test_dup_mv_year/test_dup_mv_year.groovy
@@ -44,7 +44,7 @@ suite ("test_dup_mv_year") {
     }
     qt_select_mv "select k1,year(k2) from d_table order by k1;"
 
-    result = "null"
+    def result = "null"
     sql "create materialized view k13y as select k1,year(k3) from d_table;"
     while (!result.contains("FINISHED")){
         result = sql "SHOW ALTER TABLE MATERIALIZED VIEW WHERE 
TableName='d_table' ORDER BY CreateTime DESC LIMIT 1;"


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to