[
https://issues.apache.org/jira/browse/ARROW-3795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16689873#comment-16689873
]
Javier Luraschi commented on ARROW-3795:
----------------------------------------
Interesting, not sure then, I'll do some debugging. Maybe it's Spark the one
not properly encoding NAs, or sparklyr.
> [R] Support for retrieving NAs from INT64 arrays
> ------------------------------------------------
>
> Key: ARROW-3795
> URL: https://issues.apache.org/jira/browse/ARROW-3795
> Project: Apache Arrow
> Issue Type: Improvement
> Components: R
> Reporter: Javier Luraschi
> Priority: Major
>
> I have a repro using sparklyr but likely to be possible to repro this through
> c++ bindings:
>
>
> {code:java}
> library(sparklyr)
> library(arrow)
> sc <- spark_connect(mater = "local")
> DBI::dbGetQuery(sc, "SELECT cast(NULL as bigint)")
> {code}
> Actual:
>
> {code:java}
> CAST(NULL AS BIGINT)
> 1 -4332462841530417152
> {code}
>
> Expected:
> {code:java}
> CAST(NULL AS BIGINT)
> 1 NA
> {code}
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)