[
https://issues.apache.org/jira/browse/ARROW-14989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nicola Crane updated ARROW-14989:
---------------------------------
Fix Version/s: (was: 9.0.0)
> [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
> Priority: Major
>
> 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)