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)