-
|
Hi all, I want to perform ML operator on the "data" column, which leads me to UDF. The SQL query is like: I wonder if it is possible in datafusion, and if possible how would the query be parsed? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
hi @KeeganJin There is an example of how to create a UDF at https://github.com/apache/arrow-datafusion/blob/main/datafusion-examples/examples/simple_udf.rs. Additionally, examples of creating UDAFs and UDWFs can be found in the same 'examples' directory. |
Beta Was this translation helpful? Give feedback.
-
|
Maybe https://www.linkedin.com/pulse/guide-user-defined-functions-apache-arrow-datafusion-dade-aderemi/ would help? |
Beta Was this translation helpful? Give feedback.
hi @KeeganJin
There is an example of how to create a UDF at https://github.com/apache/arrow-datafusion/blob/main/datafusion-examples/examples/simple_udf.rs. Additionally, examples of creating UDAFs and UDWFs can be found in the same 'examples' directory.