diff --git a/regression-test/suites/mv_p0/no_await/no_await.groovy b/regression-test/suites/mv_p0/no_await/no_await.groovy index 2daae738afcc1c..526e3acde31cdd 100644 --- a/regression-test/suites/mv_p0/no_await/no_await.groovy +++ b/regression-test/suites/mv_p0/no_await/no_await.groovy @@ -26,6 +26,10 @@ suite ("no_await") { sql "sync;" while (!result.contains("FINISHED")) { result = (sql "SHOW ALTER TABLE MATERIALIZED VIEW WHERE TableName='${tblName}' ORDER BY CreateTime DESC LIMIT 1;")[0] + if (result.contains("CANCELLED")) { + log.info("result: ${result}") + assertTrue(false) + } Thread.sleep(1100) try_times -= 1 assertTrue(try_times > 0) diff --git a/regression-test/suites/mv_p0/test_dup_mv_bitmap_hash/test_dup_mv_bitmap_hash.groovy b/regression-test/suites/mv_p0/test_dup_mv_bitmap_hash/test_dup_mv_bitmap_hash.groovy index ff9ae2ee5f938e..b474f4558fee86 100644 --- a/regression-test/suites/mv_p0/test_dup_mv_bitmap_hash/test_dup_mv_bitmap_hash.groovy +++ b/regression-test/suites/mv_p0/test_dup_mv_bitmap_hash/test_dup_mv_bitmap_hash.groovy @@ -46,17 +46,7 @@ suite ("test_dup_mv_bitmap_hash") { } qt_select_mv "select bitmap_union_count(to_bitmap(k2)) from d_table group by k1 order by k1;" - result = "null" - sql "create materialized view k1g3bm as select k1,bitmap_union(bitmap_hash(k3)) from d_table group by k1;" - while (!result.contains("FINISHED")){ - result = sql "SHOW ALTER TABLE MATERIALIZED VIEW WHERE TableName='d_table' ORDER BY CreateTime DESC LIMIT 1;" - result = result.toString() - logger.info("result: ${result}") - if(result.contains("CANCELLED")){ - return - } - Thread.sleep(1000) - } + createMV "create materialized view k1g3bm as select k1,bitmap_union(bitmap_hash(k3)) from d_table group by k1;" sql "insert into d_table select 2,2,'bb';" sql "insert into d_table select 3,3,'c';" diff --git a/regression-test/suites/mv_p0/test_dup_mv_year/test_dup_mv_year.groovy b/regression-test/suites/mv_p0/test_dup_mv_year/test_dup_mv_year.groovy index f4a06ac04c340c..2e41fb0923d587 100644 --- a/regression-test/suites/mv_p0/test_dup_mv_year/test_dup_mv_year.groovy +++ b/regression-test/suites/mv_p0/test_dup_mv_year/test_dup_mv_year.groovy @@ -44,17 +44,7 @@ suite ("test_dup_mv_year") { } qt_select_mv "select k1,year(k2) from d_table order by k1;" - def result = "null" - sql "create materialized view k13y as select k1,year(k3) from d_table;" - while (!result.contains("FINISHED")){ - result = sql "SHOW ALTER TABLE MATERIALIZED VIEW WHERE TableName='d_table' ORDER BY CreateTime DESC LIMIT 1;" - result = result.toString() - logger.info("result: ${result}") - if(result.contains("CANCELLED")){ - return - } - Thread.sleep(1000) - } + createMV "create materialized view k13y as select k1,year(k3) from d_table;" sql "insert into d_table select 4,'2033-12-31','2033-12-31 01:02:03';" Thread.sleep(1000) diff --git a/regression-test/suites/nereids_syntax_p0/mv/newMv/dup_mv_bm_hash.groovy b/regression-test/suites/nereids_syntax_p0/mv/newMv/dup_mv_bm_hash.groovy index a8a81589ca6873..21448d689284a5 100644 --- a/regression-test/suites/nereids_syntax_p0/mv/newMv/dup_mv_bm_hash.groovy +++ b/regression-test/suites/nereids_syntax_p0/mv/newMv/dup_mv_bm_hash.groovy @@ -46,17 +46,7 @@ suite ("dup_mv_bm_hash") { } order_qt_select_mv "select bitmap_union_count(to_bitmap(k2)) from dup_mv_bm_hash group by k1 order by k1;" - result = "null" - sql "create materialized view dup_mv_bm_hash_mv2 as select k1,bitmap_union(bitmap_hash(k3)) from dup_mv_bm_hash group by k1;" - while (!result.contains("FINISHED")){ - result = sql "SHOW ALTER TABLE MATERIALIZED VIEW WHERE TableName='dup_mv_bm_hash' ORDER BY CreateTime DESC LIMIT 1;" - result = result.toString() - logger.info("result: ${result}") - if(result.contains("CANCELLED")){ - return - } - Thread.sleep(1000) - } + createMV("create materialized view dup_mv_bm_hash_mv2 as select k1,bitmap_union(bitmap_hash(k3)) from dup_mv_bm_hash group by k1;") sql "SET experimental_enable_nereids_planner=false" diff --git a/regression-test/suites/nereids_syntax_p0/mv/newMv/dup_mv_year.groovy b/regression-test/suites/nereids_syntax_p0/mv/newMv/dup_mv_year.groovy index 0ab0b500724238..4167efc082af30 100644 --- a/regression-test/suites/nereids_syntax_p0/mv/newMv/dup_mv_year.groovy +++ b/regression-test/suites/nereids_syntax_p0/mv/newMv/dup_mv_year.groovy @@ -46,17 +46,8 @@ suite ("dup_mv_year") { } order_qt_select_mv "select k1,year(k2) from dup_mv_year order by k1;" - result = "null" - sql "create materialized view k13y as select k1,year(k3) from dup_mv_year;" - while (!result.contains("FINISHED")){ - result = sql "SHOW ALTER TABLE MATERIALIZED VIEW WHERE TableName='dup_mv_year' ORDER BY CreateTime DESC LIMIT 1;" - result = result.toString() - logger.info("result: ${result}") - if(result.contains("CANCELLED")){ - return - } - Thread.sleep(1000) - } + createMV "create materialized view k13y as select k1,year(k3) from dup_mv_year;" + sql "SET experimental_enable_nereids_planner=false"