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

Joris Van den Bossche commented on ARROW-11070:
-----------------------------------------------

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: 
https://github.com/pandas-dev/pandas/issues/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.

> [C++] Implement power / exponentiation compute kernel
> -----------------------------------------------------
>
>                 Key: ARROW-11070
>                 URL: https://issues.apache.org/jira/browse/ARROW-11070
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++, R
>    Affects Versions: 2.0.0
>            Reporter: Jonathan Keane
>            Assignee: Michal Nowakiewicz
>            Priority: Major
>              Labels: compute
>             Fix For: 4.0.0
>
>
> We have addition, subtraction, multiplication, and division. 



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

Reply via email to