GitHub user chauhanVritul closed a discussion: How do I create a UDF in 
datafusion rust?

I want to make a UDF similar to array_contains(), since it is not supported by 
datafusion. 
Consider a table like this:

`col_1 | col_2`
`"one"    | [ "123", "234", "345"] `
` "two"   |  [ "987", "876", "123"] `

I only want the columns containing "123". So the SQL query is like: `SELECT * 
FROM table WHERE array_contain(col_2, "123")`

The example provided is good but am unable to give it a valid return type. 

GitHub link: https://github.com/apache/datafusion/discussions/2980

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to