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

   ### Describe the bug
   
   Exactly the same as #10914 but for interleave.
   
   ### To Reproduce
   
   Fails with length 0 without this patch:
   ```rust
       #[test]
       fn test_interleave_zero_sized_fixed_size_list() {
           let input = FixedSizeListArray::try_new_with_length(
               Field::new_list_field(DataType::Int32, true).into(),
               0,
               Arc::new(Int32Array::new_null(0)),
               None,
               3,
           )
           .unwrap();
   
           let indices = [(0, 2), (0, 0)];
           let result = interleave(&[&input], &indices).unwrap();
   
           assert_eq!(result.len(), 2);
       }
   ```
   
   ### Expected behavior
   
   The array returned by `Interleave(s, a)` should always have length `len(s)`.
   
   ### Additional context
   
   _No response_


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