yiguolei commented on code in PR #62835:
URL: https://github.com/apache/doris/pull/62835#discussion_r3146600976
##########
be/src/storage/iterator/block_reader.cpp:
##########
@@ -538,7 +562,15 @@ Status BlockReader::_unique_key_next_block(Block* block,
bool* eof) {
LOG(WARNING) << "next failed: " << res;
return res;
}
- } while (target_block_row < _reader_context.batch_size);
+ // Byte-budget check: _next_row is already saved so stopping here is
safe.
+ if (target_block_row % BLOCK_SIZE_CHECK_INTERVAL_ROWS == 0 &&
+ _reached_byte_budget(target_columns)) {
+ if (UNLIKELY(_reader_context.record_rowids)) {
+ _block_row_locations.resize(target_block_row);
Review Comment:
这个操作是啥意思?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]