Skip to content

Commit

Permalink
fix-case
Browse files Browse the repository at this point in the history
  • Loading branch information
englefly committed Jun 27, 2024
1 parent 929f040 commit f78c481
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 f78c481

Please sign in to comment.