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

morningman pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new 2238e9dcfe3 branch-4.0: [fix](regression) Wait row count before 
partition stats check (#63760)
2238e9dcfe3 is described below

commit 2238e9dcfe309fe83abc74565ae1f02f5f771df8
Author: yujun <[email protected]>
AuthorDate: Fri Jun 26 17:30:59 2026 +0800

    branch-4.0: [fix](regression) Wait row count before partition stats check 
(#63760)
    
    ### What problem does this PR solve?
    
    The partition row count regression asserts selected partition stats from
    BE-reported row counts. In Cloud, this row count can be stale
    immediately after insert, so wait until SHOW DATA reports the expected
    table row count before analyze and explain.
---
 .../suites/nereids_p0/stats/partitionRowCount.groovy         | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/regression-test/suites/nereids_p0/stats/partitionRowCount.groovy 
b/regression-test/suites/nereids_p0/stats/partitionRowCount.groovy
index f49f96e24b2..73db27dde6e 100644
--- a/regression-test/suites/nereids_p0/stats/partitionRowCount.groovy
+++ b/regression-test/suites/nereids_p0/stats/partitionRowCount.groovy
@@ -29,6 +29,18 @@ suite("partitionRowCount") {
         distributed by hash(a) properties("replication_num"="1");
         insert into partitionRowCountTable values (5, 3, 0), (22, 150, 1), 
(333, 1, 2);
         insert into partitionRowCountTable values (5, 3, 10), (22, 150, 11), 
(333, 1, 12);
+    """
+    def tableData = sql "show data from partitionRowCountTable;"
+    def retry = 0
+    while (tableData[0][4] != "6" && retry < 120) {
+        sleep(1000)
+        tableData = sql "show data from partitionRowCountTable;"
+        retry++
+        logger.info("wait partitionRowCountTable row count, retry " + retry + 
" times, tableData: " + tableData)
+    }
+    assertEquals("6", tableData[0][4], "partitionRowCountTable row count is 
not reported: " + tableData)
+
+    sql """
         analyze table partitionRowCountTable with sync;
     """
     explain {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to