This is an automated email from the ASF dual-hosted git repository.
airborne pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new bb2bc777172 [Pick 2.1](inverted index) skip index compaction for
inverted index V2 (#38278)
bb2bc777172 is described below
commit bb2bc777172b05cead598b1cccfa2a36295937b0
Author: airborne12 <[email protected]>
AuthorDate: Wed Jul 24 14:38:25 2024 +0800
[Pick 2.1](inverted index) skip index compaction for inverted index V2
(#38278)
Enabling index compaction in the inverted index V2 format currently
causes unexpected errors, especially in the case of tables with hybrid
indexes, such as BKD index and Fulltext index together.
backport #38209
---
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 d7f814f431f..ae886118ea7 100644
--- a/be/src/olap/compaction.cpp
+++ b/be/src/olap/compaction.cpp
@@ -783,7 +783,9 @@ Status
Compaction::construct_output_rowset_writer(RowsetWriterContext& ctx, bool
if (config::inverted_index_compaction_enable &&
(((_tablet->keys_type() == KeysType::UNIQUE_KEYS &&
_tablet->enable_unique_key_merge_on_write()) ||
- _tablet->keys_type() == KeysType::DUP_KEYS))) {
+ _tablet->keys_type() == KeysType::DUP_KEYS)) &&
+ _cur_tablet_schema->get_inverted_index_storage_format() ==
+ InvertedIndexStorageFormatPB::V1) {
for (const auto& index : _cur_tablet_schema->indexes()) {
if (index.index_type() == IndexType::INVERTED) {
auto col_unique_id = index.col_unique_ids()[0];
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]