-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Implement array_intersect
function
#6978
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Hi, I'm new to datafusion, could I have a try with this one? |
Thanks @Veeupup -- just be aware these arrays / functions are quite tricky (you might ask @edmondop who is working on array union in #7897) Another place that could use help (and might be a easier introduction to DataFusion) could be to help @jayzhan211 help clean up the existing array functions (e.g #8071) -- you would get to see how the existing ones work before having to implement your own |
@Veeupup I confirm, this is a change that probably require some tens of hours between studying, trial and errors, interacting with the datafusion community. You probably want to start with something simpler |
If starting from the basic scalar, non-column, each implementation for each type, it is much easier, but the general type approach is really non-trivial |
I recommend starting from array_append/prepend. #7988 |
Thank you all! ^_^ And maybe I'll come back later when I finish array_append/prepend! |
Is your feature request related to a problem or challenge?
Summary
array_intersect
list_intersect
,&&
Clickhouse: Takes multiple arrays, returns an array with elements that are present in all source arrays.
DuckDB: Returns a list of all the elements that exist in both l1 and l2, without duplicates.
Examples:
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: