pepijnve commented on PR #19360:
URL: https://github.com/apache/datafusion/pull/19360#issuecomment-3665423083

   I've experimented a bit with a variant of what's suggested in this PR in 
https://github.com/pepijnve/datafusion/tree/coop_joins. The idea there in the 
cross join implementation, is that you want to consume a unit of task budget in 
each loop iteration. For the fetch states the assumption is that the polled 
stream will take care of that. In the build batches state, there are no Tokio 
resources being accessed directly or indirectly, so we need to do so ourselves. 
I added a non-async variant of Tokio's `async consume_budget()` that's more 
convenient to use in manual stream implementations for this.


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