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

xuyang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 744ad806916 [fix](regression) Avoid defined global variables in 
backup-restore case script (#49102)
744ad806916 is described below

commit 744ad806916e69bcf3577625b6c669da0fff6ada
Author: xy720 <22125576+xy...@users.noreply.github.com>
AuthorDate: Mon Mar 17 11:23:45 2025 +0800

    [fix](regression) Avoid defined global variables in backup-restore case 
script (#49102)
    
    Avoid defined global variables in backup-restore case script
---
 .../suites/backup_restore/test_backup_store_with_db_properties.groovy   | 2 +-
 .../backup_restore/test_backup_store_with_db_properties_kv.groovy       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/regression-test/suites/backup_restore/test_backup_store_with_db_properties.groovy
 
b/regression-test/suites/backup_restore/test_backup_store_with_db_properties.groovy
index 83cd32dd33d..7871d304b29 100644
--- 
a/regression-test/suites/backup_restore/test_backup_store_with_db_properties.groovy
+++ 
b/regression-test/suites/backup_restore/test_backup_store_with_db_properties.groovy
@@ -96,7 +96,7 @@ 
suite("test_backup_store_with_db_properties","backup_restore") {
     assertEquals(result_kv_restore, result_kv_origin);
 
     for (def tableName in tables) {
-        result = sql "SELECT * FROM ${dbName}.${tableName}"
+        def result = sql "SELECT * FROM ${dbName}.${tableName}"
         assertEquals(result.size(), numRows);
         sql "DROP TABLE ${dbName}.${tableName} FORCE"
     }
diff --git 
a/regression-test/suites/backup_restore/test_backup_store_with_db_properties_kv.groovy
 
b/regression-test/suites/backup_restore/test_backup_store_with_db_properties_kv.groovy
index 5c57819c73a..28982f9eac0 100644
--- 
a/regression-test/suites/backup_restore/test_backup_store_with_db_properties_kv.groovy
+++ 
b/regression-test/suites/backup_restore/test_backup_store_with_db_properties_kv.groovy
@@ -101,7 +101,7 @@ 
suite("test_backup_store_with_db_properties_kv","backup_restore") {
     assertEquals(result_restore, result_origin);
 
     for (def tableName in tables) {
-        result = sql "SELECT * FROM ${dbName}.${tableName}"
+        def result = sql "SELECT * FROM ${dbName}.${tableName}"
         assertEquals(result.size(), numRows);
         sql "DROP TABLE ${dbName}.${tableName} FORCE"
     }


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

Reply via email to