eldenmoon commented on code in PR #42060: URL: https://github.com/apache/doris/pull/42060#discussion_r1805913622
########## be/src/olap/rowset/segment_v2/segment_iterator.cpp: ########## @@ -1989,8 +1989,11 @@ Status SegmentIterator::_next_batch_internal(vectorized::Block* block) { if (UNLIKELY(!_lazy_inited)) { RETURN_IF_ERROR(_lazy_init()); _lazy_inited = true; + uint32_t nrows_reserve_limit = _row_bitmap.cardinality() < _opts.block_row_max + ? _row_bitmap.cardinality() Review Comment: add comment? std::min(_row_bitmap.cardinality(), _opts.block_row_max) is better -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org