[cherry-pick](branch-2.1) Pick "[Fix](delete) Fix delete on value case due to compaction (#37917)" (#38116)

## Proposed changes

Issue Number: close #xxx

<!--Describe your changes.-->

Pick #37917
This commit is contained in:
abmdocrt
2024-07-19 13:51:39 +08:00
committed by GitHub
parent 27d7461644
commit 53ca312751

View File

@ -32,6 +32,7 @@ suite("test_delete_on_value") {
DISTRIBUTED BY HASH(`x`) BUCKETS 4
PROPERTIES (
"replication_num" = "1",
"disable_auto_compaction" = "true",
"enable_unique_key_merge_on_write" = "true"
);"""
sql """ insert into ${tableName} values(1,1,1),(2,2,2),(3,3,3),(4,4,4),(5,5,5),(6,6,6),(7,7,7),(8,8,8),(9,9,9); """
@ -65,6 +66,7 @@ suite("test_delete_on_value") {
COMMENT 'OLAP'
DISTRIBUTED BY HASH(`x`) BUCKETS 4
PROPERTIES (
"disable_auto_compaction" = "true",
"replication_num" = "1"
);"""
sql """ insert into ${tableName2} values(1,1,1); """
@ -87,6 +89,7 @@ suite("test_delete_on_value") {
COMMENT 'OLAP'
DISTRIBUTED BY HASH(`x`) BUCKETS 4
PROPERTIES (
"disable_auto_compaction" = "true",
"replication_num" = "1",
"enable_unique_key_merge_on_write" = "true",
"function_column.sequence_col" = "z"
@ -123,6 +126,7 @@ suite("test_delete_on_value") {
COMMENT 'OLAP'
DISTRIBUTED BY HASH(`x`) BUCKETS 4
PROPERTIES (
"disable_auto_compaction" = "true",
"replication_num" = "1",
"enable_unique_key_merge_on_write" = "false",
"function_column.sequence_col" = "z"