berkaysynnada commented on PR #14837:
URL: https://github.com/apache/datafusion/pull/14837#issuecomment-2869684912

   > How would that work going from sync -> async? For example: `1 = 2 OR 1 = 
call_llm_model_async()`. I imagine this would build something like 
`BinaryExpr(BinaryExpr(1, Eq, 2), Or, ScalarFunc(call_llm_model_async))`. If we 
call `evaluate_async` on the outer `BinaryExpr` it would call `evaluate()` by 
default so now you're in sync world. How do you break back into async world? Do 
we pass around a handle to the tokio runtime?
   
   Easy answer is converting original `evaluate()`'s to async, and move all 
`evalute()` impls to `evaluate_sync()`, but I cannot fully estimate its effects 
and challenges. Any comes to your mind?


-- 
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: github-unsubscr...@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to