This is an automated email from the ASF dual-hosted git repository.
morrysnow pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.1 by this push:
new 988d47ef6cb branch-3.1: [test](cases) fix some wrong cases #54631
(#54771)
988d47ef6cb is described below
commit 988d47ef6cb3790a6f7abf60c2ea9ee79b9ade39
Author: zclllyybb <[email protected]>
AuthorDate: Fri Aug 15 17:47:47 2025 +0800
branch-3.1: [test](cases) fix some wrong cases #54631 (#54771)
pick #54631
---
.../partition_p2/auto_partition/ddl/create_list_part_data_table.sql | 2 +-
.../auto_partition/ddl/create_range_part_data_table.sql | 2 +-
.../auto_partition/ddl/small_data_high_concurrrent_load.sql | 2 +-
.../partition_p2/auto_partition/ddl/stream_load_list_test_table.sql | 2 +-
.../auto_partition/ddl/stream_load_range_test_table.sql | 2 +-
.../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 ++--
9 files changed, 12 insertions(+), 12 deletions(-)
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 22112930603..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
@@ -40,7 +40,7 @@ CREATE TABLE `test2`(
`col39` decimal(9, 3),
`col40` char(128)
) UNIQUE KEY(`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/create_range_part_data_table.sql
b/regression-test/suites/partition_p2/auto_partition/ddl/create_range_part_data_table.sql
index 556e5e3fe87..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
@@ -40,7 +40,7 @@ CREATE TABLE `test1`(
`col39` decimal(9, 3),
`col40` char(128)
) UNIQUE KEY(`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/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 3866d2a81f1..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
@@ -43,7 +43,7 @@ CREATE TABLE `stream_load_list_test_table`(
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 48100691945..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
@@ -43,7 +43,7 @@ CREATE TABLE `stream_load_range_test_table`(
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]