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

hellostephen 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 e816575bb62 [regression-test](fix) fix final check (#47522)
e816575bb62 is described below

commit e816575bb62ff767f3c3a510a95a1d88affdce31
Author: shuke <sh...@selectdb.com>
AuthorDate: Fri Feb 7 10:15:34 2025 +0800

    [regression-test](fix) fix final check (#47522)
    
    ### What problem does this PR solve?
    
    Issue Number: close #xxx
    
    Related PR: #xxx
    
    Problem Summary:
    final check may fail due to "show create view" when base tables were
    deleted.
---
 .../suites/check_before_quit/check_before_quit.groovy         | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

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 0fc2c2621bf..88b42911501 100644
--- a/regression-test/suites/check_before_quit/check_before_quit.groovy
+++ b/regression-test/suites/check_before_quit/check_before_quit.groovy
@@ -259,7 +259,16 @@ suite("check_before_quit", "nonConcurrent,p0") {
                 logger.info("create table sql: ${createTableSql}")
             } catch (Exception e) {
                 if (e.getMessage().contains("not support async materialized 
view")) {
-                    createTableSql = sql "show create materialized view ${tbl}"
+                    try {
+                        createTableSql = sql "show create materialized view 
${tbl}"
+                    } catch (Exception e2) {
+                        if (e2.getMessage().contains("table not found")) {
+                            continue
+                        } else {
+                            logger.info(e2.getMessage())
+                            throw e2
+                        }
+                    } 
                     logger.info("create materialized view sql: 
${createTableSql}")
                 }
             }


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

Reply via email to