yiguolei commented on code in PR #62835:
URL: https://github.com/apache/doris/pull/62835#discussion_r3145147165


##########
be/src/storage/segment/segment_iterator.cpp:
##########
@@ -367,6 +367,36 @@ Status SegmentIterator::_init_impl(const 
StorageReadOptions& opts) {
     // Read options will not change, so that just resize here
     _block_rowids.resize(_opts.block_row_max);
 
+    // Adaptive batch size: snapshot the initial row limit and create 
predictor if enabled.
+    _initial_block_row_max = _opts.block_row_max;
+    if (config::enable_adaptive_batch_size && _opts.preferred_block_size_bytes 
> 0) {
+        // Collect per-column raw byte metadata from the segment footer.

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]

Reply via email to