[
https://issues.apache.org/jira/browse/ARROW-3795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16689156#comment-16689156
]
Romain François commented on ARROW-3795:
----------------------------------------
I'm not sure what sparklyr does, but 64 bit int are supposed to be supported:
{code:r}
library(arrow)
library(bit64)
x <- bit64::as.integer64(c(1:10,NA))
a <- array(x)
a$type()
#> arrow::Int64
#> int64
a$as_vector()
#> integer64
#> [1] 1 2 3 4 5 6 7 8 9 10 <NA>
{code}
> [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)