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

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


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new 25edcd2f375 [fix](regression)Fix paimon row count case. (#45994) 
(#46012)
25edcd2f375 is described below

commit 25edcd2f375a510fcffae8a203c91a4856184f09
Author: James <lijib...@selectdb.com>
AuthorDate: Fri Dec 27 07:18:00 2024 +0800

    [fix](regression)Fix paimon row count case. (#45994) (#46012)
    
    backport: https://github.com/apache/doris/pull/45994
---
 .../external_table_p0/paimon/test_paimon_table_stats.groovy    | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git 
a/regression-test/suites/external_table_p0/paimon/test_paimon_table_stats.groovy
 
b/regression-test/suites/external_table_p0/paimon/test_paimon_table_stats.groovy
index a747eea67e7..2684a4c3e9b 100644
--- 
a/regression-test/suites/external_table_p0/paimon/test_paimon_table_stats.groovy
+++ 
b/regression-test/suites/external_table_p0/paimon/test_paimon_table_stats.groovy
@@ -30,19 +30,21 @@ suite("test_paimon_table_stats", 
"p0,external,doris,external_docker,external_doc
                 "warehouse" = 
"hdfs://${externalEnvIp}:${hdfs_port}/user/doris/paimon1"
             );"""
 
-            def assert_stats = { table_name, cnt -> 
+            def assert_stats = { table_name, cnt ->
                 def retry = 0
                 def act = ""
-                while (retry < 10) {
+                sql """desc ${table_name}"""
+                while (retry < 100) {
                     def result = sql """ show table stats ${table_name} """
                     act = result[0][2]
-                    if (act != "0") {
+                    logger.info("current table row count is " + act)
+                    if (!act.equals("-1")) {
                         break;
                     }
                     Thread.sleep(2000)
                     retry++
                 }
-                assertEquals(act, cnt)
+                assertEquals(cnt, act)
             }
 
             // select


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

Reply via email to