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

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

commit 373de3e49d27fe202513b7b6d021350c6a4282b9
Author: yujun <yu.jun.re...@gmail.com>
AuthorDate: Fri May 10 21:30:04 2024 +0800

    [fix](regression test) fix unstable case auto bucket test (#34635)
---
 regression-test/suites/autobucket/test_autobucket.groovy | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/regression-test/suites/autobucket/test_autobucket.groovy 
b/regression-test/suites/autobucket/test_autobucket.groovy
index a2366627299..ff672d7288a 100644
--- a/regression-test/suites/autobucket/test_autobucket.groovy
+++ b/regression-test/suites/autobucket/test_autobucket.groovy
@@ -65,8 +65,8 @@ suite("test_autobucket") {
     sql "ADMIN SET FRONTEND CONFIG ('autobucket_min_buckets' = '1')"
     sql "drop table if exists autobucket_test_min_buckets"
 
-    // set max to 4
-    sql "ADMIN SET FRONTEND CONFIG ('autobucket_max_buckets' = '4')"
+    // set max to 1
+    sql "ADMIN SET FRONTEND CONFIG ('autobucket_max_buckets' = '1')"
     sql "drop table if exists autobucket_test_max_buckets"
     result = sql """
         CREATE TABLE `autobucket_test_max_buckets` (
@@ -84,7 +84,7 @@ suite("test_autobucket") {
     result = sql "show partitions from autobucket_test_max_buckets"
     logger.info("${result}")
     // XXX: buckets at pos(8), next maybe impl by sql meta
-    assertEquals(Integer.valueOf(result.get(0).get(8)), 4)
+    assertEquals(Integer.valueOf(result.get(0).get(8)), 1) //equals max bucket
     // set back to default
     sql "ADMIN SET FRONTEND CONFIG ('autobucket_max_buckets' = '128')"
     sql "drop table if exists autobucket_test_max_buckets"


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

Reply via email to