Skip to content

[C++] Simplify Call("case_when", ...) expressions #29001

@asfimport

Description

@asfimport

case_when will be implemented as case_when(struct(bool...), T...) which requires materialization of scalar arguments. However, we can simplify such cases before calling instead, e.g. all scalar false branches can be eliminated, and scalar true branches can be removed and their values promoted to the 'else' argument.

Reporter: David Li / @lidavidm

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions