How do I create a UDF in datafusion rust? #2980
-
| I want to make a UDF similar to array_contains(), since it is not supported by datafusion. 
 I only want the columns containing "123". So the SQL query is like:  The example provided is good but am unable to give it a valid return type. | 
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
| Hi @chauhanVritul ! The return type of this function should be  I assume the example you refer to is https://github.com/apache/arrow-datafusion/blob/41b4e491663029f653e491b110d0b5e74d08a0b6/datafusion-examples/examples/simple_udf.rs Would it be possible to paste in what you have tried so far? | 
Beta Was this translation helpful? Give feedback.
-
| We have array_has function now. And for reference we do have a guide on creating UDFs on the site now | 
Beta Was this translation helpful? Give feedback.
We have array_has function now.
And for reference we do have a guide on creating UDFs on the site now