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

yiguolei 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 5aa715db037 branch-2.1: [fix](regression) Avoid defined global 
variables in backup-restore case script (#49331)
5aa715db037 is described below

commit 5aa715db037a70b9989edd4af17c977011440f27
Author: xy720 <22125576+xy...@users.noreply.github.com>
AuthorDate: Fri Mar 21 20:13:07 2025 +0800

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

diff --git 
a/regression-test/suites/backup_restore/test_backup_restore_with_view.groovy 
b/regression-test/suites/backup_restore/test_backup_restore_with_view.groovy
index 4ba7c652be2..c26f2a4b32e 100644
--- a/regression-test/suites/backup_restore/test_backup_restore_with_view.groovy
+++ b/regression-test/suites/backup_restore/test_backup_restore_with_view.groovy
@@ -105,7 +105,7 @@ suite("test_backup_restore_with_view", "backup_restore") {
     """
 
     syncer.waitAllRestoreFinish(dbName1)
-    restore_result = sql_return_maparray """ SHOW RESTORE FROM ${dbName1} 
WHERE Label ="${snapshotName}" """
+    def restore_result = sql_return_maparray """ SHOW RESTORE FROM ${dbName1} 
WHERE Label ="${snapshotName}" """
     restore_result.last()
     logger.info("show restore result: ${restore_result}")
     assertTrue(restore_result.last().State == "FINISHED")
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