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

zclll 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 abbffbb94ff [test](cases) fix some wrong cases (#54631)
abbffbb94ff is described below

commit abbffbb94ffa14e15f22ab09478eb7d101f1cd2a
Author: zclllyybb <[email protected]>
AuthorDate: Wed Aug 13 22:42:12 2025 +0800

    [test](cases) fix some wrong cases (#54631)
    
    fix auto partition p2 case and dictionary docker case
---
 .../suites/dictionary_p0/test_dictionary_fe_failover.groovy         | 6 +++---
 .../partition_p2/auto_partition/ddl/create_list_part_data_table.sql | 4 ++--
 .../auto_partition/ddl/create_range_part_data_table.sql             | 4 ++--
 .../auto_partition/ddl/small_data_high_concurrrent_load.sql         | 2 +-
 .../partition_p2/auto_partition/ddl/stream_load_list_test_table.sql | 4 ++--
 .../auto_partition/ddl/stream_load_range_test_table.sql             | 4 ++--
 .../partition_p2/auto_partition/ddl/two_streamload_table1.sql       | 2 +-
 .../partition_p2/auto_partition/ddl/two_streamload_table2.sql       | 2 +-
 .../auto_partition/same_data/stress_test_same_date_range.groovy     | 6 +++---
 .../two_stream_load/stress_test_two_stream_load.groovy              | 4 ++--
 10 files changed, 19 insertions(+), 19 deletions(-)

diff --git 
a/regression-test/suites/dictionary_p0/test_dictionary_fe_failover.groovy 
b/regression-test/suites/dictionary_p0/test_dictionary_fe_failover.groovy
index eb0c94149b2..f3ad498b66d 100644
--- a/regression-test/suites/dictionary_p0/test_dictionary_fe_failover.groovy
+++ b/regression-test/suites/dictionary_p0/test_dictionary_fe_failover.groovy
@@ -71,7 +71,7 @@ suite('test_dictionary_fe_failover', 'docker') {
             )LAYOUT(HASH_MAP)
             properties('data_lifetime'='600');
         """
-        sql "REFRESH DICTIONARY dict1"
+        waitAllDictionariesReady()
         def dictResult = sql "SHOW DICTIONARIES"
         assertEquals(dictResult[0][1], "dict1")
 
@@ -85,7 +85,7 @@ suite('test_dictionary_fe_failover', 'docker') {
             )LAYOUT(IP_TRIE)
             properties('data_lifetime'='600');
         """
-        sql "REFRESH DICTIONARY dict_iptrie"
+        waitAllDictionariesReady()
         dictResult = sql "SHOW DICTIONARIES"
         assertEquals(dictResult.size(), 2)
 
@@ -123,7 +123,7 @@ suite('test_dictionary_fe_failover', 'docker') {
             )LAYOUT(HASH_MAP)
             properties('data_lifetime'='600');
         """
-        sql "REFRESH DICTIONARY dict3"
+        waitAllDictionariesReady()
         def finalDictResult = sql "SHOW DICTIONARIES"
         assertEquals(finalDictResult.size(), 3)
         waitAllDictionariesReady()
diff --git 
a/regression-test/suites/partition_p2/auto_partition/ddl/create_list_part_data_table.sql
 
b/regression-test/suites/partition_p2/auto_partition/ddl/create_list_part_data_table.sql
index a3c1c66227d..78f92d8aa47 100644
--- 
a/regression-test/suites/partition_p2/auto_partition/ddl/create_list_part_data_table.sql
+++ 
b/regression-test/suites/partition_p2/auto_partition/ddl/create_list_part_data_table.sql
@@ -39,8 +39,8 @@ CREATE TABLE `test2`(
   `col38` varchar(128),
   `col39` decimal(9, 3),
   `col40` char(128)
-) DUPLICATE KEY(`col1`)
-DISTRIBUTED BY HASH(`col1`) BUCKETS 10
+) UNIQUE KEY(`col1`)
+DISTRIBUTED BY HASH(`col1`) BUCKETS 1
 PROPERTIES (
   "replication_num" = "1"
 );
\ No newline at end of file
diff --git 
a/regression-test/suites/partition_p2/auto_partition/ddl/create_range_part_data_table.sql
 
b/regression-test/suites/partition_p2/auto_partition/ddl/create_range_part_data_table.sql
index 8e67d7bf0fd..44be0f23a62 100644
--- 
a/regression-test/suites/partition_p2/auto_partition/ddl/create_range_part_data_table.sql
+++ 
b/regression-test/suites/partition_p2/auto_partition/ddl/create_range_part_data_table.sql
@@ -39,8 +39,8 @@ CREATE TABLE `test1`(
   `col38` varchar(128),
   `col39` decimal(9, 3),
   `col40` char(128)
-) DUPLICATE KEY(`col1`)
-DISTRIBUTED BY HASH(`col1`) BUCKETS 10
+) UNIQUE KEY(`col1`)
+DISTRIBUTED BY HASH(`col1`) BUCKETS 1
 PROPERTIES (
   "replication_num" = "1"
 );
\ No newline at end of file
diff --git 
a/regression-test/suites/partition_p2/auto_partition/ddl/small_data_high_concurrrent_load.sql
 
b/regression-test/suites/partition_p2/auto_partition/ddl/small_data_high_concurrrent_load.sql
index c3f7895dfa1..081300d9cd7 100644
--- 
a/regression-test/suites/partition_p2/auto_partition/ddl/small_data_high_concurrrent_load.sql
+++ 
b/regression-test/suites/partition_p2/auto_partition/ddl/small_data_high_concurrrent_load.sql
@@ -7,7 +7,7 @@ CREATE TABLE `small_data_high_concurrent_load_range`(
 auto partition by range (date_trunc(`col1`, 'day'))
 (
 )
-DISTRIBUTED BY HASH(`col1`) BUCKETS 10
+DISTRIBUTED BY HASH(`col1`) BUCKETS 1
 PROPERTIES (
   "replication_num" = "1"
 );
\ No newline at end of file
diff --git 
a/regression-test/suites/partition_p2/auto_partition/ddl/stream_load_list_test_table.sql
 
b/regression-test/suites/partition_p2/auto_partition/ddl/stream_load_list_test_table.sql
index e65207116e8..17b5dffab06 100644
--- 
a/regression-test/suites/partition_p2/auto_partition/ddl/stream_load_list_test_table.sql
+++ 
b/regression-test/suites/partition_p2/auto_partition/ddl/stream_load_list_test_table.sql
@@ -39,11 +39,11 @@ CREATE TABLE `stream_load_list_test_table`(
   `col38` varchar(128),
   `col39` decimal(9, 3),
   `col40` char(128)
-) DUPLICATE KEY(`col1`)
+) UNIQUE KEY(`col1`)
 AUTO PARTITION BY list(`col1`)
 (
 )
-DISTRIBUTED BY HASH(`col1`) BUCKETS 10
+DISTRIBUTED BY HASH(`col1`) BUCKETS 1
 PROPERTIES (
   "replication_num" = "1"
 );
\ No newline at end of file
diff --git 
a/regression-test/suites/partition_p2/auto_partition/ddl/stream_load_range_test_table.sql
 
b/regression-test/suites/partition_p2/auto_partition/ddl/stream_load_range_test_table.sql
index 28c320aa013..59d09279afa 100644
--- 
a/regression-test/suites/partition_p2/auto_partition/ddl/stream_load_range_test_table.sql
+++ 
b/regression-test/suites/partition_p2/auto_partition/ddl/stream_load_range_test_table.sql
@@ -39,11 +39,11 @@ CREATE TABLE `stream_load_range_test_table`(
   `col38` varchar(128),
   `col39` decimal(9, 3),
   `col40` char(128)
-) DUPLICATE KEY(`col1`)
+) UNIQUE KEY(`col1`)
 auto partition by range (date_trunc(`col1`, 'day'))
 (
 )
-DISTRIBUTED BY HASH(`col1`) BUCKETS 10
+DISTRIBUTED BY HASH(`col1`) BUCKETS 1
 PROPERTIES (
   "replication_num" = "1"
 );
\ No newline at end of file
diff --git 
a/regression-test/suites/partition_p2/auto_partition/ddl/two_streamload_table1.sql
 
b/regression-test/suites/partition_p2/auto_partition/ddl/two_streamload_table1.sql
index 486c6df5117..1848e493c97 100644
--- 
a/regression-test/suites/partition_p2/auto_partition/ddl/two_streamload_table1.sql
+++ 
b/regression-test/suites/partition_p2/auto_partition/ddl/two_streamload_table1.sql
@@ -8,7 +8,7 @@ CREATE TABLE `two_streamload_list1`(
 AUTO PARTITION BY list(`col1`)
 (
 )
-DISTRIBUTED BY HASH(`col1`) BUCKETS 10
+DISTRIBUTED BY HASH(`col1`) BUCKETS 1
 PROPERTIES (
 "replication_num" = "1"
 );
\ No newline at end of file
diff --git 
a/regression-test/suites/partition_p2/auto_partition/ddl/two_streamload_table2.sql
 
b/regression-test/suites/partition_p2/auto_partition/ddl/two_streamload_table2.sql
index ed36d3cf58b..fd96b4253fd 100644
--- 
a/regression-test/suites/partition_p2/auto_partition/ddl/two_streamload_table2.sql
+++ 
b/regression-test/suites/partition_p2/auto_partition/ddl/two_streamload_table2.sql
@@ -8,7 +8,7 @@ CREATE TABLE `two_streamload_list2`(
 AUTO PARTITION BY list(`col1`)
 (
 )
-DISTRIBUTED BY HASH(`col1`) BUCKETS 10
+DISTRIBUTED BY HASH(`col1`) BUCKETS 1
 PROPERTIES (
 "replication_num" = "1"
 );
\ No newline at end of file
diff --git 
a/regression-test/suites/partition_p2/auto_partition/same_data/stress_test_same_date_range.groovy
 
b/regression-test/suites/partition_p2/auto_partition/same_data/stress_test_same_date_range.groovy
index cbece2071e3..926b98fed3c 100644
--- 
a/regression-test/suites/partition_p2/auto_partition/same_data/stress_test_same_date_range.groovy
+++ 
b/regression-test/suites/partition_p2/auto_partition/same_data/stress_test_same_date_range.groovy
@@ -163,12 +163,12 @@ suite("stress_test_same_date_range", "p2,nonConcurrent") {
 
     def row_count_range = sql """select count(*) from ${tb_name2};"""
     def partition_res_range = sql """show partitions from ${tb_name2};"""
-    assertTrue(row_count_range[0][0] == partition_res_range.size)
+    assertEquals(row_count_range[0][0], partition_res_range.size())
     def part_context = []
 
-    for (int i = 0; i < partition_res_range.size; i++) {
+    for (int i = 0; i < partition_res_range.size(); i++) {
         part_context.add(partition_res_range[i][6])
     }
     def part_context_unique = part_context.clone().unique()
-    assertTrue(part_context.size == part_context_unique.size)
+    assertEquals(part_context.size(), part_context_unique.size())
 }
diff --git 
a/regression-test/suites/partition_p2/auto_partition/two_stream_load/stress_test_two_stream_load.groovy
 
b/regression-test/suites/partition_p2/auto_partition/two_stream_load/stress_test_two_stream_load.groovy
index 212c8adfce4..f0804cfc99a 100644
--- 
a/regression-test/suites/partition_p2/auto_partition/two_stream_load/stress_test_two_stream_load.groovy
+++ 
b/regression-test/suites/partition_p2/auto_partition/two_stream_load/stress_test_two_stream_load.groovy
@@ -169,7 +169,7 @@ suite("stress_test_two_stream_load", "p2,nonConcurrent") {
 
     def row_count_range = sql """select count(*) from ${tb_name2};"""
     def partition_res_range = sql """show partitions from ${tb_name2};"""
-    assertTrue(row_count_range[0][0] == partition_res_range.size)
+    assertTrue(row_count_range[0][0] == partition_res_range.size())
 
     data_delete("range")
     doris_dbgen_create_data(database_name, tb_name4, "list")
@@ -192,7 +192,7 @@ suite("stress_test_two_stream_load", "p2,nonConcurrent") {
 
     def row_count_list = sql """select count(*) from ${tb_name3};"""
     def partition_res_list = sql """show partitions from ${tb_name3};"""
-    assertTrue(row_count_list[0][0] == partition_res_list.size)
+    assertTrue(row_count_list[0][0] == partition_res_list.size())
 
     data_delete("list")
 }


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

Reply via email to