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

Neal Richardson commented on ARROW-8956:
----------------------------------------

Wouldn't it make more sense (for some mental model of what missing data is) for 
them both to return null instead?

{code}
$ R
> NA == NA
[1] NA
> NaN == NaN
[1] NA
{code}

> [C++] arrow::ScalarEquals returns false when values are both null
> -----------------------------------------------------------------
>
>                 Key: ARROW-8956
>                 URL: https://issues.apache.org/jira/browse/ARROW-8956
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>            Reporter: Wes McKinney
>            Priority: Major
>
> I wasn't sure if this was deliberate but it appeared while writing unit tests 
> and so wanted to check what was the intention before changing it. Arrays 
> compare equal when null slots are respectively null so this seems 
> inconsistent.



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

Reply via email to