You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Neal Richardson (Jira)" <ji...@apache.org> on 2020/05/26 20:59:00 UTC
[jira] [Commented] (ARROW-8956) [C++] arrow::ScalarEquals returns
false when values are both null
[ 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)