This is an automated email from the ASF dual-hosted git repository.

hellostephen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new b13c17de9b4 [fix](regression-case) add wait for partition_col_stats 
case (#36899)
b13c17de9b4 is described below

commit b13c17de9b4b44a3ff3fd0dc78272b251de93b22
Author: minghong <engle...@gmail.com>
AuthorDate: Thu Jun 27 18:50:16 2024 +0800

    [fix](regression-case) add wait for partition_col_stats case (#36899)
    
    ## Proposed changes
    
    Issue Number: close #xxx
    
    <!--Describe your changes.-->
---
 .../suites/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 3436b6dd86e..9aea3251326 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;"
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to