You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "marshauf (via GitHub)" <gi...@apache.org> on 2023/06/01 19:20:36 UTC

[GitHub] [arrow-datafusion] marshauf commented on issue #6518: Async User Defined Functions (UDF)

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

   My idea was to do something likes this:
   ```sql
   SELECT call('localhost:3000', num, letter FROM (SELECT * FROM (VALUES (1, 'one'), (2, 'two'), (3, 'three')) AS t (num,letter))
   ```
   
   It would probably work with your example.
   ```sql
   CREATE EXTERNAL TABLE your_table STORED AS CSV WITH HEADER ROW LOCATION 'localhost:3000';
   INSERT INTO your_table SELECT * FROM (VALUES (1, 'one'), (2, 'two'), (3, 'three')) AS t (num,letter);
   SELECT * FROM your_table;
   ```
   And on insert call endpoint and store returned value. Seems cumbersome to use and implement.


-- 
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-unsubscribe@arrow.apache.org

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