From f9439187d74f0c5e43e51c72451887a331e3db7a Mon Sep 17 00:00:00 2001 From: Jianliang Qi Date: Mon, 19 Feb 2024 15:46:21 +0800 Subject: [PATCH] [fix](index compaction) Only check rowid_coversion for MOW table for now. --- be/src/olap/compaction.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/be/src/olap/compaction.cpp b/be/src/olap/compaction.cpp index b4b34cbacb8ccc..a686bbbf61e10a 100644 --- a/be/src/olap/compaction.cpp +++ b/be/src/olap/compaction.cpp @@ -402,10 +402,14 @@ Status Compaction::do_compaction_impl(int64_t permits) { RETURN_IF_ERROR(check_correctness(stats)); if (_input_row_num > 0 && stats.rowid_conversion && config::inverted_index_compaction_enable && - !ctx.skip_inverted_index.empty()) { + !ctx.skip_inverted_index.empty() && + (!(_tablet->keys_type() == KeysType::UNIQUE_KEYS && + !_tablet->enable_unique_key_merge_on_write()))) { OlapStopWatch inverted_watch; // check rowid_conversion correctness + // currently, only check the unique key table with merge on write enabled + // TODO: check the correctness of rowid_conversion for other cases, such as DUP_KEYS and MOR Version version = _tablet->max_version(); DeleteBitmap output_rowset_delete_bitmap(_tablet->tablet_id()); std::set missed_rows;