Skip to content

[C++/Python] Add option to Take kernel to interpret negative indices as NULL #25507

Closed as not planned

Description

@asfimport

Currently negative integers are explicitly forbidding in the Take kernel. It would be nice to have the option to treat negative integers as NULL instead.

Reporter: Uwe Korn / @xhochy

Related issues:

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

Activity

  1. asfimport commented on Jul 13, 2020

    @asfimport
    Author

    Joris Van den Bossche / @jorisvandenbossche:
    This is a rather pandas-specific behaviour (given lack of proper null support). I am not fully sure this is something that belongs in Arrow? (of course, doing it on the pandas side will not be as efficient, as we first need to pre-process the integer indices to convert -1 to null)

  2. asfimport commented on Jun 22, 2021

    @asfimport
    Author

    Wes McKinney / @wesm:
    This might be achievable similar to ARROW-9432 by rewriting the indices (to make the negative numbers all 0 or similar) and then setting the null bitmap entries according to what's negative.

  3. thisisnic commented on Jun 20, 2025

    @thisisnic
    Member

    This issue hasn't had activity in a long time. If it's still being worked on, please leave a comment. Otherwise, it will be closed on 23rd June.

    Labelled Status: Stale-Warning for tracking.

  4. added
    Status: stale-warning
    on Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: C++Component: PythonStatus: stale-warningType: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions