Skip to content

Commit ce3df49

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

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
@@ -161,15 +161,6 @@ Status BetaRowsetReader::get_segment_iterators(RowsetReaderContext* read_context
161161
_read_options.read_orderby_key_columns = read_context->read_orderby_key_columns;
162162
_read_options.io_ctx.reader_type = read_context->reader_type;
163163
_read_options.runtime_state = read_context->runtime_state;
164-
if (read_context->read_orderby_key_limit > 0) {
165-
size_t limit = read_context->read_orderby_key_limit;
166-
if (read_context->predicates != nullptr) {
167-
limit = limit * 2;
168-
}
169-
if (read_options.block_row_max > limit) {
170-
read_options.block_row_max = limit;
171-
}
172-
}
173164

174165
// load segments
175166
RETURN_NOT_OK(SegmentLoader::instance()->load_segments(

0 commit comments

Comments
 (0)