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 2022/06/30 17:41:00 UTC

[jira] [Assigned] (ARROW-14989) [R] Update num_rows methods to output doubles not integers to prevent integer overflow

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

Nicola Crane reassigned ARROW-14989:
------------------------------------

    Assignee:     (was: Nicola Crane)

> [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
>             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)