-
Notifications
You must be signed in to change notification settings - Fork 4.3k
[C++] Add a "list_contains" kernel #33295
Copy link
Copy link
Open
Labels
Component: C++Status: needs championHigh impact issues which aren't being worked on but require a volunteer to move the task forward.High impact issues which aren't being worked on but require a volunteer to move the task forward.Type: enhancement
Description
Activity
Metadata
Metadata
Assignees
Labels
Component: C++Status: needs championHigh impact issues which aren't being worked on but require a volunteer to move the task forward.High impact issues which aren't being worked on but require a volunteer to move the task forward.Type: enhancement
Assume you have a list array:
And you want to know for each list if it contains a certain value (of the same type as the list's values). A "list_contains" function (or other name) would be useful for that:
The current workaround that I found was flattening, checking equality, and then reducing again with groupby, but this is quite tedious:
But this also only works if there are no empty or missing list values.
Reporter: Joris Van den Bossche / @jorisvandenbossche
Related issues:
Note: This issue was originally created as ARROW-18097. Please see the migration documentation for further details.