We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c215b1 commit 75d7b5eCopy full SHA for 75d7b5e
be/src/olap/compaction.cpp
@@ -427,6 +427,14 @@ bool CompactionMixin::handle_ordered_data_compaction() {
427
return false;
428
}
429
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
+
438
// If some rowsets has idx files and some rowsets has not, we can not do link file compaction.
439
// Since the output rowset will be broken.
440
0 commit comments