BiteTheDDDDt commented on code in PR #62222:
URL: https://github.com/apache/doris/pull/62222#discussion_r3166299089


##########
be/src/exec/scan/scanner_scheduler.cpp:
##########
@@ -211,9 +211,8 @@ void 
ScannerScheduler::_scanner_scan(std::shared_ptr<ScannerContext> ctx,
             }
 
             bool first_read = true;
-            int64_t limit = scanner->limit(); if (UNLIKELY(ctx->done())) {
-                eos = true;
-            } else if (ctx->remaining_limit() == 0) { eos = true; } else if 
(!eos) {
+            int64_t limit = scanner->limit();
+            if (UNLIKELY(ctx->done())) { eos = true; } else if (!eos) {
                 do {

Review Comment:
   这个没问题,最多多取一次空block触发eos



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