Skip to content

Commit cd560bc

Browse files
committed
delete setting read_options.block_row_max to key topn limit (apache#896)
1 parent af36e26 commit cd560bc

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

‎be/src/olap/rowset/beta_rowset_reader.cpp‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,6 @@ Status BetaRowsetReader::get_segment_iterators(RowsetReaderContext* read_context
152152
_read_options.read_orderby_key_columns = read_context->read_orderby_key_columns;
153153
_read_options.io_ctx.reader_type = read_context->reader_type;
154154
_read_options.runtime_state = read_context->runtime_state;
155-
if (read_context->read_orderby_key_limit > 0) {
156-
size_t limit = read_context->read_orderby_key_limit;
157-
if (read_context->predicates != nullptr) {
158-
limit = limit * 2;
159-
}
160-
if (read_options.block_row_max > limit) {
161-
read_options.block_row_max = limit;
162-
}
163-
}
164155

165156
// load segments
166157
RETURN_NOT_OK(SegmentLoader::instance()->load_segments(

0 commit comments

Comments
 (0)