You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (Jira)" <ji...@apache.org> on 2020/05/25 20:03:00 UTC

[jira] [Commented] (ARROW-7179) [C++][Compute] Coalesce kernel

    [ https://issues.apache.org/jira/browse/ARROW-7179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17116227#comment-17116227 ] 

Wes McKinney commented on ARROW-7179:
-------------------------------------

We can implement this either as a Binary or VarArgs scalar kernel

> [C++][Compute] Coalesce kernel
> ------------------------------
>
>                 Key: ARROW-7179
>                 URL: https://issues.apache.org/jira/browse/ARROW-7179
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>    Affects Versions: 0.15.1
>            Reporter: Ben Kietzman
>            Assignee: Ben Kietzman
>            Priority: Major
>             Fix For: 1.0.0
>
>
> Add a kernel which replaces null values in an array with a scalar value or with values taken from another array:
> {code}
> coalesce([1, 2, null, 3], 5) -> [1, 2, 5, 3]
> coalesce([1, null, null, 3], [5, 6, null, 8]) -> [1, 6, null, 3]
> {code}
> The code in {{take_internal.h}} should be of some use with a bit of refactoring.
> A filter Expression should be added at the same time.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)