Jefffrey opened a new issue, #12031:
URL: https://github.com/apache/arrow-rs/issues/12031

   ### Describe the bug
   
   
https://github.com/apache/arrow-rs/blob/e2c48ef0dd83fa464d643e25f8e9f9177ca7316e/arrow-array/src/builder/map_builder.rs#L174-L179
   
   
https://github.com/apache/arrow-rs/blob/e2c48ef0dd83fa464d643e25f8e9f9177ca7316e/arrow-array/src/builder/map_builder.rs#L185-L191
   
   In these methods we append offset using `as i32` cast, which in extreme 
cases can wrap. We should be checking this to error if it overflows, otherwise 
it can create an invalid map array (wraps to negative, offsets no longer valid)
   
   ### To Reproduce
   
   _No response_
   
   ### Expected behavior
   
   _No response_
   
   ### Additional context
   
   Identified by Dr Charles Grellois


-- 
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]

Reply via email to