[
https://issues.apache.org/jira/browse/ARROW-10640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ian Cook updated ARROW-10640:
-----------------------------
Summary: [C++] An "if_else" kernel to combine two arrays based on a mask
(was: [C++] A "where" kernel to combine two arrays based on a mask)
> [C++] An "if_else" kernel to combine two arrays based on a mask
> ---------------------------------------------------------------
>
> Key: ARROW-10640
> URL: https://issues.apache.org/jira/browse/ARROW-10640
> Project: Apache Arrow
> Issue Type: New Feature
> Components: C++
> Reporter: Joris Van den Bossche
> Assignee: Niranda Perera
> Priority: Major
> Labels: pull-request-available
> Fix For: 5.0.0
>
> Time Spent: 10h
> Remaining Estimate: 0h
>
> (from discussion in ARROW-9489 with [~maartenbreddels])
> A general "where" kernel like {{np.where}}
> (https://numpy.org/doc/stable/reference/generated/numpy.where.html) seems a
> generally useful kernel to have, and could also help mimicking some other
> python (setitem-like) operations.
> The concrete use case in ARROW-9489 is to basically do a
> {{fill_null(array[string], array[string])}} which could be expressed as
> {{where(is_null(arr), arr2, arr)}}.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)