Skip to content

Commit

Permalink
Fix case timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jibing-Li committed Sep 13, 2024
1 parent 61eb0de commit ee1ed1e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion regression-test/suites/statistics/test_analyze_mtmv.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,20 @@ suite("test_analyze_mtmv") {
l_suppkey;
"""
sql """REFRESH MATERIALIZED VIEW mv1 AUTO"""
while(true) {
boolean refreshed = false;
for (int i = 0; i < 300; i++) {
Thread.sleep(1000)
def result = sql """select * from mv_infos("database"="test_analyze_mtmv") where Name="mv1";"""
logger.info("refresh mv info:" + result)
if (result[0][5] == "SUCCESS") {
refreshed = true;
break;
}
if (result[0][5] == "FAIL") {
throw new Exception("Refresh mv failed.")
}
}
assertTrue(refreshed)

def dup_sql1 = """select * from mv1 order by l_shipdate;"""
qt_sql1 dup_sql1
Expand Down
1 change: 1 addition & 0 deletions regression-test/suites/statistics/test_analyze_mv.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ suite("test_analyze_mv") {
sql """create database test_analyze_mv"""
sql """use test_analyze_mv"""
sql """set global force_sample_analyze=false"""
sql """set global enable_auto_analyze=false"""

sql """CREATE TABLE mvTestDup (
key1 bigint NOT NULL,
Expand Down

0 comments on commit ee1ed1e

Please sign in to comment.