Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R] Update num_rows methods to output doubles not integers to prevent integer overflow #30510

Closed
asfimport opened this issue Dec 6, 2021 · 1 comment
Assignees
Milestone

Comments

@asfimport
Copy link

In cases where Arrow objects are particularly large, this can result in an integer overflow when returning their size. See discussion on #11783 for more details of a possible solution.

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

Reporter: Nicola Crane / @thisisnic
Assignee: Nicola Crane / @thisisnic

PRs and other links:

Note: This issue was originally created as ARROW-14989. Please see the migration documentation for further details.

@asfimport
Copy link
Author

Nicola Crane / @thisisnic:
Issue resolved by pull request 13482
#13482

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants