zstan commented on code in PR #5479:
URL: https://github.com/apache/ignite-3/pull/5479#discussion_r2032904482


##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/exec/rel/LimitNode.java:
##########
@@ -136,6 +153,6 @@ protected Downstream<RowT> requestDownstream(int idx) {
 
     /** {@code True} if requested 0 results, or all already processed. */
     private boolean fetchNone() {
-        return (fetchNode != null && fetch == 0) || (fetch > 0 && 
rowsProcessed == fetch + offset);
+        return (!fetchUndefined && fetch == 0) || (fetch > 0 && rowsProcessed 
== fetch + offset);

Review Comment:
   I`d prefer to stay it as is, we will change it in scope of execution 
refactoring



-- 
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: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to