Skip to content

Commit

Permalink
skip vertical segment writer
Browse files Browse the repository at this point in the history
  • Loading branch information
mymeiyi committed Nov 18, 2023
1 parent 15cf3d3 commit 7e907c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion be/src/olap/rowset/segment_creator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ Status SegmentFlusher::flush_single_block(const vectorized::Block* block, int32_
return Status::OK();
}
bool no_compression = block->bytes() <= config::segment_compression_threshold_kb * 1024;
if (config::enable_vertical_segment_writer) {
if (config::enable_vertical_segment_writer &&
_context.tablet_schema->cluster_key_idxes().empty()) {
std::unique_ptr<segment_v2::VerticalSegmentWriter> writer;
RETURN_IF_ERROR(_create_segment_writer(writer, segment_id, no_compression, flush_schema));
RETURN_IF_ERROR(_add_rows(writer, block, 0, block->rows()));
Expand Down

0 comments on commit 7e907c2

Please sign in to comment.