Skip to content

Commit 75d7b5e

Browse files
committed
dev
1 parent 4c215b1 commit 75d7b5e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

be/src/olap/compaction.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,14 @@ bool CompactionMixin::handle_ordered_data_compaction() {
427427
return false;
428428
}
429429

430+
// Skip ordered data compaction if any rowset has inverted/ann index.
431+
for (auto& rowset : _input_rowsets) {
432+
const auto& meta = rowset->rowset_meta();
433+
if (meta->tablet_schema()->has_inverted_index() || meta->tablet_schema()->has_ann_index()) {
434+
return false;
435+
}
436+
}
437+
430438
// If some rowsets has idx files and some rowsets has not, we can not do link file compaction.
431439
// Since the output rowset will be broken.
432440

0 commit comments

Comments
 (0)