Skip to content

Commit

Permalink
[fix](regression-case) add wait for partition_col_stats case (apache#…
Browse files Browse the repository at this point in the history
…36899)

## Proposed changes

Issue Number: close #xxx

<!--Describe your changes.-->
  • Loading branch information
englefly authored Jun 27, 2024
1 parent dd77c84 commit b13c17d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions regression-test/suites/nereids_p0/stats/partition_col_stats.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,18 @@ suite("partition_col_stats") {
"""
//run this sql to make stats be cached
sql "select * from pt where k1<3;"
sleep(10000)
def pt_data = sql "show data from pt;"
def retry= 0;
while (pt_data[0][4] != '7' && retry < 20) {
pt_data = sql "show data from pt;"
sleep(10000);
retry ++;
print("wait partition row count, retry " + retry +" times\n");
}

explain{
sql "physical plan select * from pt where k1<3;"
contains("stats=4")
}

sql "set global enable_partition_analyze=false;"
}

0 comments on commit b13c17d

Please sign in to comment.