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

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


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new b916953b4b8 branch-4.0: [fix](test) fix unstable check_before_quit 
cases #58295 (#58321)
b916953b4b8 is described below

commit b916953b4b83e310c86ed32fb4b654088b2de791
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Nov 25 15:58:48 2025 +0800

    branch-4.0: [fix](test) fix unstable check_before_quit cases #58295 (#58321)
    
    Cherry-picked from #58295
    
    Co-authored-by: Mingyu Chen (Rayner) <[email protected]>
---
 .../suites/check_before_quit/check_before_quit.groovy        | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/regression-test/suites/check_before_quit/check_before_quit.groovy 
b/regression-test/suites/check_before_quit/check_before_quit.groovy
index c9f8a491449..a3c7e1148aa 100644
--- a/regression-test/suites/check_before_quit/check_before_quit.groovy
+++ b/regression-test/suites/check_before_quit/check_before_quit.groovy
@@ -256,7 +256,7 @@ suite("check_before_quit", "nonConcurrent,p0") {
         if (db == "__internal_schema" || db == "information_schema" || db == 
"mysql") {
             continue
         }
-        List<List<Object>> allTables = sql "show tables from ${db}"
+        List<List<Object>> allTables = sql "show tables from `${db}`"
         logger.info("show all tables: ${allTables}")
         for (int j = 0; j < allTables.size(); j++) {
             def tbl = allTables[j][0]
@@ -264,12 +264,12 @@ suite("check_before_quit", "nonConcurrent,p0") {
             try {
                 // cloud mode not allowed to set light_schema_change = true
                 if (!isCloudMode()) {
-                    createTableSql = sql "show create table ${db}.${tbl}"
+                    createTableSql = sql "show create table `${db}`.${tbl}"
                     if (createTableSql[0][1].contains("CREATE TABLE")) {
                         try {
-                            sql " ALTER TABLE ${db}.${tbl} SET 
(\"light_schema_change\" = \"true\") "
+                            sql " ALTER TABLE `${db}`.${tbl} SET 
(\"light_schema_change\" = \"true\") "
                         } catch (Exception alterEx) {
-                            logger.warn("Failed to alter table ${db}.${tbl} to 
set light_schema_change: ${alterEx.getMessage()}")
+                            logger.warn("Failed to alter table `${db}`.${tbl} 
to set light_schema_change: ${alterEx.getMessage()}")
                             failureList << [
                                 operation: "ALTER TABLE",
                                 target: "${tbl}", 
@@ -277,12 +277,12 @@ suite("check_before_quit", "nonConcurrent,p0") {
                             ]
                         }
                     }
-                    createTableSql = sql "show create table ${db}.${tbl}"
+                    createTableSql = sql "show create table `${db}`.${tbl}"
                 }
             } catch (Exception e) {
                 if (e.getMessage().contains("not support async materialized 
view")) {
                     try {
-                        createTableSql = sql "show create materialized view 
${db}.${tbl}"
+                        createTableSql = sql "show create materialized view 
`${db}`.${tbl}"
                     } catch (Exception e2) {
                         if (e2.getMessage().contains("table not found")) {
                             continue


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to