HappenLee commented on code in PR #44338:
URL: https://github.com/apache/doris/pull/44338#discussion_r1871159754


##########
be/src/vec/exec/scan/scanner_scheduler.cpp:
##########
@@ -316,6 +318,17 @@ void 
ScannerScheduler::_scanner_scan(std::shared_ptr<ScannerContext> ctx,
                     ctx->inc_block_usage(free_block->allocated_bytes());
                     
scan_task->cached_blocks.emplace_back(std::move(free_block), free_block_bytes);
                 }
+                if (limit < ctx->batch_size()) {

Review Comment:
   if limit == -1? not limit query will be `true`. better the check in while 
loop ? 



-- 
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

Reply via email to