Skip to content

[C++] An "if_else" kernel to combine two arrays based on a mask #26596

@asfimport

Description

@asfimport

(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).

Reporter: Joris Van den Bossche / @jorisvandenbossche
Assignee: Niranda Perera / @nirandaperera

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-10640. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions