diff --git a/be/src/olap/merger.cpp b/be/src/olap/merger.cpp index 694b7d6db84d8e1..0c4fc26e7ae1fed 100644 --- a/be/src/olap/merger.cpp +++ b/be/src/olap/merger.cpp @@ -199,10 +199,6 @@ void Merger::vertical_split_columns(const TabletSchema& tablet_schema, } VLOG_NOTICE << "sequence_col_idx=" << sequence_col_idx << ", delete_sign_idx=" << delete_sign_idx; - // for duplicate no keys - if (!key_columns.empty()) { - column_groups->emplace_back(std::move(key_columns)); - } std::vector value_columns; @@ -220,6 +216,10 @@ void Merger::vertical_split_columns(const TabletSchema& tablet_schema, value_columns.push_back(i); } + // for duplicate no keys + if (!key_columns.empty()) { + column_groups->emplace_back(std::move(key_columns)); + } if (!value_columns.empty()) { column_groups->push_back(value_columns); }