Ayush-CS-89112521 opened a new pull request, #12149: URL: https://github.com/apache/arrow-rs/pull/12149
Fixes #12143. `GenericByteArray::new_repeated` panics if the repeated byte length exceeds the offset type (e.g. `i32::MAX`), but its rustdoc only documented the `usize` overflow condition. This PR documents the offset overflow in `new_repeated` and adds a fallible `try_new_repeated` constructor that returns `Result<Self, ArrowError>`. Added unit tests in `arrow-array` covering `usize`, `i32`, and `i64` overflow boundaries, zero repeats, and empty values. All existing tests and clippy checks pass cleanly. Let me know if you would prefer any adjustments! -- 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]
