This is an automated email from the ASF dual-hosted git repository. dataroaring pushed a commit to branch branch-3.0 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push: new 51f2e352eb3 [fix](compaction) disable cumu delete rowset from performing ordered data compaction (#38742) 51f2e352eb3 is described below commit 51f2e352eb34114395254850037298b879f2de4a Author: Luwei <814383...@qq.com> AuthorDate: Sun Aug 4 10:40:32 2024 +0800 [fix](compaction) disable cumu delete rowset from performing ordered data compaction (#38742) ## problem When enable_delete_when_cumu_compaction = true, multiple delete rowsets may be merged into an empty data rowset through ordered data compaction, causing the delete predicate to be lost. --- be/src/olap/compaction.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/be/src/olap/compaction.cpp b/be/src/olap/compaction.cpp index dc4dd419a17..1d0a592e535 100644 --- a/be/src/olap/compaction.cpp +++ b/be/src/olap/compaction.cpp @@ -349,7 +349,9 @@ bool CompactionMixin::handle_ordered_data_compaction() { // check delete version: if compaction type is base compaction and // has a delete version, use original compaction - if (compaction_type() == ReaderType::READER_BASE_COMPACTION) { + if (compaction_type() == ReaderType::READER_BASE_COMPACTION || + (_allow_delete_in_cumu_compaction && + compaction_type() == ReaderType::READER_CUMULATIVE_COMPACTION)) { for (auto& rowset : _input_rowsets) { if (rowset->rowset_meta()->has_delete_predicate()) { return false; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org