This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 9be66852a4a branch-3.0: [Test](check) add check for materialized view
#46713 (#46839)
9be66852a4a is described below
commit 9be66852a4a878e23b313f1ca1cf583cc25636c4
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Jan 13 21:53:19 2025 +0800
branch-3.0: [Test](check) add check for materialized view #46713 (#46839)
Cherry-picked from #46713
Co-authored-by: Uniqueyou <[email protected]>
---
.../suites/check_before_quit/check_before_quit.groovy | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 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 5d5accf089f..8c9e9cf16be 100644
--- a/regression-test/suites/check_before_quit/check_before_quit.groovy
+++ b/regression-test/suites/check_before_quit/check_before_quit.groovy
@@ -242,10 +242,21 @@ suite("check_before_quit", "nonConcurrent,p0") {
logger.info("show all tabkes: ${allTables}")
for (int j = 0;j < allTables.size();j ++) {
def tbl = allTables[j][0]
- def createTableSql = sql "show create table ${db}.${tbl}"
+ def createTableSql = ""
+ try {
+ createTableSql = sql "show create table ${db}.${tbl}"
+ 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}"
+ logger.info("create materialized view sql:
${createTableSql}")
+ }
+ }
if (createTableSql[0][1].contains("CREATE VIEW")) {
sql "drop view if exists ${tbl}"
- }else {
+ } else if (createTableSql[0][1].contains("CREATE MATERIALIZED
VIEW")) {
+ sql "drop materialized view if exists ${tbl}"
+ } else {
sql "drop table if exists ${tbl}"
}
sql(createTableSql[0][1])
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]