-
Notifications
You must be signed in to change notification settings - Fork 223
Add contains(List, Array)
#263
Comments
Are you wondering why there isn't something like |
Thanks for your timely reply. My question is why the interface is not list_array.contains(array) -> BooleanArray. |
just to check I understood: given |
Yes, that is what I mean. |
cool. If you think it is useful, let's convert this question into an issue not framed as a question and implement it as a function, e.g. something like fn can_in_list(&DataType) -> bool;
fn in_list<O: Offset>(list: ListArray<O>, values: &dyn Array) -> Result<BooleanArray>; |
Sure. I am happy to do that. |
Hey, I'm working on this |
For the
contains
operations, the list needs to be duplicated for each element in the array, according to the test pointed by the link below. What is the reason behind this implementation?arrow2/src/compute/contains.rs
Line 177 in 91bf35c
The text was updated successfully, but these errors were encountered: