You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Javier Luraschi (JIRA)" <ji...@apache.org> on 2018/11/16 19:00:03 UTC
[jira] [Comment Edited] (ARROW-3795) [R] Support for retrieving NAs
from INT64 arrays
[ https://issues.apache.org/jira/browse/ARROW-3795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16689878#comment-16689878 ]
Javier Luraschi edited comment on ARROW-3795 at 11/16/18 7:00 PM:
------------------------------------------------------------------
Wait, here is a repro:
{code:java}
library(arrow)
library(bit64)
x <- bit64::as.integer64(c(NA))
a <- array(x)
a$as_vector()
{code}
{code:java}
integer64
[1] -4332462841530417152
{code}
was (Author: javierluraschi):
Wait, here is a repro:
{code:java}
library(arrow)
library(bit64)
x <- bit64::as.integer64(c(NA))
a <- array(x)
a$as_vector()
{code}
{code:java}
integer64
[1] -4332462841530417152
{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)