Skip to content

Commit fbe8d74

Browse files
authored
delete setting read_options.block_row_max to key topn limit (apache#896)
1 parent f447af7 commit fbe8d74

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
@@ -169,15 +169,6 @@ Status BetaRowsetReader::init(RowsetReaderContext* read_context) {
169169
read_options.use_topn_opt = read_context->use_topn_opt;
170170
read_options.read_orderby_key_reverse = read_context->read_orderby_key_reverse;
171171
read_options.read_orderby_key_columns = read_context->read_orderby_key_columns;
172-
if (read_context->read_orderby_key_limit > 0) {
173-
size_t limit = read_context->read_orderby_key_limit;
174-
if (read_context->predicates != nullptr) {
175-
limit = limit * 2;
176-
}
177-
if (read_options.block_row_max > limit) {
178-
read_options.block_row_max = limit;
179-
}
180-
}
181172
read_options.kept_in_memory = read_context->kept_in_memory;
182173
read_options.is_persistent = read_context->is_persistent;
183174
read_options.runtime_state = read_context->runtime_state;

0 commit comments

Comments
 (0)