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

yujun777 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 27bd90e14ae [test](statistics) Make analyze MV row count assertion 
stable (#67947)
27bd90e14ae is described below

commit 27bd90e14aea97ee6ba06002e23d36bfe0677ce0
Author: yujun <[email protected]>
AuthorDate: Tue Sep 15 11:38:03 2026 +0800

    [test](statistics) Make analyze MV row count assertion stable (#67947)
    
    ## Proposed changes
    
    - Wait for the strict row count to converge to the final value of 6
    after inserting rows into `mvTestDup`.
    - Remove the assumption that the transient `-1` state must be observed.
    - Keep a bounded timeout so non-converging statistics still fail the
    regression.
    
    ## Tests
    
    - `statistics/test_analyze_mv` passed on a freshly initialized local
    FE/BE cluster.
---
 regression-test/suites/statistics/test_analyze_mv.groovy | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/regression-test/suites/statistics/test_analyze_mv.groovy 
b/regression-test/suites/statistics/test_analyze_mv.groovy
index fc4949c5632..85ca87a601d 100644
--- a/regression-test/suites/statistics/test_analyze_mv.groovy
+++ b/regression-test/suites/statistics/test_analyze_mv.groovy
@@ -686,15 +686,15 @@ suite("test_analyze_mv") {
     sql """insert into mvTestDup values (1, 2, 3, 4, 5), (1, 2, 3, 4, 5), (10, 
20, 30, 40, 50), (10, 20, 30, 40, 50), (100, 200, 300, 400, 500), (1001, 2001, 
3001, 4001, 5001);"""
     connect(context.config.jdbcUser, context.config.jdbcPassword, url) {
         sql """use test_analyze_mv"""
-        for (int i = 0; i < 10; i++) {
+        for (int i = 0; i < 120; i++) {
             result_row = sql """show index stats mvTestDup mvTestDup"""
-            if (result_row[0][4] == "-1") {
+            if (result_row[0][4] == "6") {
                 break;
             }
-            logger.info("row count for mvTestDup is not -1: " + result_row)
-            Thread.sleep(1000)
+            logger.info("row count for mvTestDup has not converged to 6: " + 
result_row)
+            Thread.sleep(5000)
         }
-        assertEquals("-1", result_row[0][4])
+        assertEquals("6", result_row[0][4])
     }
 
     // Test alter column stats


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

Reply via email to