Wainberg opened a new issue, #40194: URL: https://github.com/apache/arrow/issues/40194
### Describe the bug, including details regarding any error messages, version, and platform. R uses -2147483648 (int32_min) to represent missing integer values (`NA`). When converting Arrow arrays to R using the C API and then casting to R vectors using `as.vector`, arrays containing -2147483649 and below are converted to bit64::integer64, but if the minimum value of the array is exactly -2147483648, all the -2147483648s are converted to NA. This is an edge case but it's an important one, because int32_min is often used as a special sentinel value. Arrow should update the out-of-range check that decides whether to convert to bit64::integer64, to use -2147483647 as the minimum valid int32 rather than -2147483648. ### Component(s) R -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
