-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for contains function in datafusion substrait consumer #10861
Comments
take |
Do we really need this conversion? what about adding a new ScalarFunction 'contains'? @alamb I would like to receive your advice here. |
I am not sure @Lordworms -- maybe @waynexia or @Blizzara have more context / understanding @richtia does this request come from a particular query you are runniing? |
My preference would actually be to add the function as well. The request came from trying to run a query with the contains function. |
+1 to adding the function into DataFusion (+ the relevant mapping into Substrait) if it doesn't exist yet. Seems like Arrow has a |
Sure, I'll file a PR later today |
I didn't see the function in DataFusion either. I also couldn't find it in Arrow, at least not under any compute function. |
Yeah, duckdb has a contains function as well as the substrait support. The same substrait plans that gave me the datafusion errors were able to execute against the DuckDB substrait consumer. |
Is your feature request related to a problem or challenge?
Datafusion does not have a contains function and will return an exception if a substrait plan contains it
Describe the solution you'd like
When the datafusion consumer sees the
contains
function, it can convert it to a combination ofstrpos
+>
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: