marshauf commented on issue #6518:
URL: 
https://github.com/apache/arrow-datafusion/issues/6518#issuecomment-1591067324

   @alamb wouldn't it be possible to turn the SQL statement
   ```sql
   SELECT call('localhost:3000', num, letter FROM (SELECT * FROM (VALUES (1, 
'one'), (2, 'two'), (3, 'three')) AS t (num,letter))
   ```
   into a LogicalPlan. Rewrite the Expr::ScalarUDF to a Expr::SubQuery with an 
LogicalPlan::Extension.
   The Extension would point to a custom ExecutionPlan, in which I could run 
async code.
   Similar to what is done in 
[datafusion/core/tests/user_defined_plan.rs](https://github.com/apache/arrow-datafusion/blob/main/datafusion/core/tests/user_defined_plan.rs).


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