alamb commented on issue #9016:
URL: 
https://github.com/apache/arrow-datafusion/issues/9016#issuecomment-2048048753

   > 2\. if 1 is correct, I believe we would have to detach `ctx.sql(...)` from 
the main thread, not to block other statements, so the question is who will be 
in charge of query cancelation?  Would it be/ is it part of datafusion, or it 
has to be implemented as part of the source, or somewhere else
   
   I think the execution is run as a separate tokio task -- so whenever someone 
wants to see if the next result is available they would do 
`stream.next().await` or something equivalent


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

Reply via email to