fallintoplace opened a new pull request, #10175:
URL: https://github.com/apache/arrow-rs/pull/10175

   ### What changed
   
   `interleave(values, indices)` now validates every user-provided `(array_idx, 
row_idx)` before dispatching to specialized implementations. It returns 
`ArrowError::InvalidArgumentError` when an index references a missing input 
array or a row past the selected array length.
   
   The regression tests cover an out-of-bounds array index, an out-of-bounds 
row index, and the `StringViewArray` specialized path that previously could 
reach direct view indexing.
   
   ### Why
   
   `interleave` is a public API, and invalid external indices should be 
reported as Arrow errors instead of reaching specialized kernels that can panic 
while indexing arrays or byte views.
   
   ### Validation
   
   - `cargo fmt --package arrow-select`
   - `cargo test -p arrow-select out_of_bounds`


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