[ 
https://issues.apache.org/jira/browse/ARROW-14989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Neal Richardson updated ARROW-14989:
------------------------------------
    Issue Type: Bug  (was: Improvement)

> [R] Update num_rows methods to output doubles not integers to prevent integer 
> overflow
> --------------------------------------------------------------------------------------
>
>                 Key: ARROW-14989
>                 URL: https://issues.apache.org/jira/browse/ARROW-14989
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: R
>            Reporter: Nicola Crane
>            Assignee: Nicola Crane
>            Priority: Major
>             Fix For: 9.0.0
>
>
> In cases where Arrow objects are particularly large, this can result in an 
> integer overflow when returning their size.  See discussion on 
> https://github.com/apache/arrow/pull/11783 for more details of a possible 
> solution.
> {code:r}
> library(arrow)
> test_array1 <- Array$create(raw(2^31 - 1))
> test_array2 <- Array$create(raw(1))
> big_chunked <- chunked_array(test_array1, test_array2)
> big_table <- Table$create(col = big_chunked)
> big_table$num_rows
> # NA
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to