Skip to content

Commit

Permalink
fix overlapping
Browse files Browse the repository at this point in the history
  • Loading branch information
mymeiyi committed Dec 17, 2024
1 parent b8df5f6 commit 4fd01a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions be/src/olap/compaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,8 @@ Status CompactionMixin::construct_output_rowset_writer(RowsetWriterContext& ctx)
}
ctx.version = _output_version;
ctx.rowset_state = VISIBLE;
ctx.segments_overlap = NONOVERLAPPING;
ctx.segments_overlap =
_tablet->tablet_schema()->cluster_key_uids().empty() ? NONOVERLAPPING : OVERLAPPING;
ctx.tablet_schema = _cur_tablet_schema;
ctx.newest_write_timestamp = _newest_write_timestamp;
ctx.write_type = DataWriteType::TYPE_COMPACTION;
Expand Down Expand Up @@ -1433,7 +1434,8 @@ Status CloudCompactionMixin::construct_output_rowset_writer(RowsetWriterContext&

ctx.version = _output_version;
ctx.rowset_state = VISIBLE;
ctx.segments_overlap = NONOVERLAPPING;
ctx.segments_overlap =
_tablet->tablet_schema()->cluster_key_uids().empty() ? NONOVERLAPPING : OVERLAPPING;
ctx.tablet_schema = _cur_tablet_schema;
ctx.newest_write_timestamp = _newest_write_timestamp;
ctx.write_type = DataWriteType::TYPE_COMPACTION;
Expand Down

0 comments on commit 4fd01a9

Please sign in to comment.