From f78c4816c0fd162e791ed5fe2dd9e8eac25034b1 Mon Sep 17 00:00:00 2001 From: minghong Date: Thu, 27 Jun 2024 11:30:23 +0800 Subject: [PATCH] fix-case --- .../nereids_p0/stats/partition_col_stats.groovy | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/regression-test/suites/nereids_p0/stats/partition_col_stats.groovy b/regression-test/suites/nereids_p0/stats/partition_col_stats.groovy index 3436b6dd86ea11..9aea3251326ca6 100644 --- a/regression-test/suites/nereids_p0/stats/partition_col_stats.groovy +++ b/regression-test/suites/nereids_p0/stats/partition_col_stats.groovy @@ -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;" }