Skip to content

[C++] Implement power / exponentiation compute kernel #26983

Closed

Description

@asfimport

We have addition, subtraction, multiplication, and division.

Reporter: Jonathan Keane / @jonkeane
Assignee: Rok Mihevc / @rok

Related issues:

PRs and other links:

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

Activity

  1. asfimport commented on Jan 29, 2021

    @asfimport
    Author

    Jonathan Keane / @jonkeane:
    ARROW-11428 may be relevant (though is only implemented in the Rust client there)

  2. asfimport commented on Feb 17, 2021

    @asfimport
    Author

    Antoine Pitrou / @pitrou:
    The Rust and C++ implementations are entirely distinct, so ARROW-11428 is irrelevant here.

  3. asfimport commented on Mar 10, 2021

    @asfimport
    Author

    Joris Van den Bossche / @jorisvandenbossche:
    Copying my note about null behaviour from ARROW-11871:

    One behavioural aspect that has come up in pandas is the question about what to do with nulls in case of power(null, 0) or power(1, null): propagate the null value (as is otherwise always done for element-wise arithmetic operations), or in this case return an actual result (1 in both cases, in the idea that whathever value the null might represent, the result is always 1). Reference to the pandas issue: pandas-dev/pandas#29997. It seems that eg R (return 1) and SQL (propagate null) have different behaviour on this aspect. So if we want to support both use cases, an option to switch might be needed.

  4. asfimport commented on Apr 13, 2021

    @asfimport
    Author

    Neal Richardson / @nealrichardson:
    Issue resolved by pull request 9841
    #9841

  5. added this to the 4.0.0 milestone on Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions