zhangfengcdt commented on code in PR #7804:
URL: https://github.com/apache/datafusion-comet/pull/7804#discussion_r4759136479


##########
native/core/src/execution/jni_api.rs:
##########
@@ -1641,10 +1640,10 @@ fn execute_plan(
             exec_context.stream = Some(stream);
         }
         exec_context.root_op = Some(root_op);
-    } else {
-        // Pull input batches
-        pull_input_batches(exec_context)?;
     }
+    // JVM input is pulled only after a poll returns `Pending`, in 
`next_batch` below, never before
+    // the first poll. An operator above a scan, such as a `BatchSplitExec`, 
can still hold rows of
+    // the last batch it took, and a limit can finish on them without the JVM 
producing another.

Review Comment:
   Thanks @rich7420 ! The doc should be fixed now.



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