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

yiguolei 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 77bea97d404 [test](sync)add sync after insert in test case (#25911)
77bea97d404 is described below

commit 77bea97d404fe1994777acf4976c6aaa819f132c
Author: zhangstar333 <[email protected]>
AuthorDate: Thu Oct 26 09:11:25 2023 +0800

    [test](sync)add sync after insert in test case (#25911)
---
 regression-test/data/correctness_p0/test_avg.out      | 6 +++---
 regression-test/suites/correctness_p0/test_avg.groovy | 3 ++-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/regression-test/data/correctness_p0/test_avg.out 
b/regression-test/data/correctness_p0/test_avg.out
index 3bd471dd563..4cfab69a28b 100644
--- a/regression-test/data/correctness_p0/test_avg.out
+++ b/regression-test/data/correctness_p0/test_avg.out
@@ -1,10 +1,10 @@
 -- This file is automatically generated. You should know what you did if you 
want to edit this
--- !sum --
-90900000000004950
-
 -- !count --
 99
 
+-- !sum --
+90900000000004950
+
 -- !avg --
 9.181818181818681E14
 
diff --git a/regression-test/suites/correctness_p0/test_avg.groovy 
b/regression-test/suites/correctness_p0/test_avg.groovy
index 5d9b9b7e6f9..20e53486340 100644
--- a/regression-test/suites/correctness_p0/test_avg.groovy
+++ b/regression-test/suites/correctness_p0/test_avg.groovy
@@ -37,8 +37,9 @@ suite("test_avg") {
     for (i in range(1, 100)) {
         sql """ INSERT INTO ${tableName} values (10000000000000${i}) """
     }
-    qt_sum """ SELECT SUM(c_bigint) FROM ${tableName} """
+    sql "sync"
     qt_count """ SELECT COUNT(c_bigint) FROM ${tableName} """
+    qt_sum """ SELECT SUM(c_bigint) FROM ${tableName} """
     qt_avg """ SELECT AVG(c_bigint) FROM ${tableName} """
     sql""" DROP TABLE IF EXISTS ${tableName} """
 


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

Reply via email to