You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Nicola Crane (Jira)" <ji...@apache.org> on 2021/12/06 11:27:00 UTC
[jira] [Created] (ARROW-14989) [R] Update num_rows methods to output doubles not integers to prevent integer overflow
Nicola Crane created ARROW-14989:
------------------------------------
Summary: [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: Improvement
Components: R
Reporter: Nicola Crane
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.1#820001)