Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mymeiyi committed Oct 10, 2024
1 parent 60acc1c commit 3d39d0e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion be/src/olap/compaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,15 @@ Status Compaction::merge_input_rowsets() {
Status res;
{
SCOPED_TIMER(_merge_rowsets_latency_timer);
if (_is_vertical || !_tablet->tablet_schema()->cluster_key_idxes().empty()) {
if (_is_vertical) {
res = Merger::vertical_merge_rowsets(_tablet, compaction_type(), *_cur_tablet_schema,
input_rs_readers, _output_rs_writer.get(),
get_avg_segment_rows(), way_num, &_stats);
} else {
if (!_tablet->tablet_schema()->cluster_key_idxes().empty()) {
return Status::InternalError(
"mow table with cluster keys does not support non vertical compaction");
}
res = Merger::vmerge_rowsets(_tablet, compaction_type(), *_cur_tablet_schema,
input_rs_readers, _output_rs_writer.get(), &_stats);
}
Expand Down

0 comments on commit 3d39d0e

Please sign in to comment.