You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Jonathan Keane (Jira)" <ji...@apache.org> on 2021/01/11 20:15:00 UTC

[jira] [Created] (ARROW-11211) [R] Chunked arrays with integers + NaNs error oddly

Jonathan Keane created ARROW-11211:
--------------------------------------

             Summary: [R] Chunked arrays with integers + NaNs error oddly 
                 Key: ARROW-11211
                 URL: https://issues.apache.org/jira/browse/ARROW-11211
             Project: Apache Arrow
          Issue Type: New Feature
          Components: R
            Reporter: Jonathan Keane


{code:r}
data <- list(1:10, NaN)
x <- chunked_array(!!!data)
{code}

returns:
{{Error: Invalid: Value is too large to fit in C integer type}}

There are a few things that might fix/change this: 
* improved error message
* chunked arrays not assuming the first chunk's types can be cast safely to all others

Note that specifying the type to int64() does work with an overflowed NaN value (-9223372036854775808)

{code:r}
data <- list(1:10, NaN)
x <- chunked_array(!!!data, type = int64())
{code}





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