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

   When MutableArrayData::extend is called on a ListView array, it copies the 
offsets and sizes buffers but does not copy the underlying child values. The 
result is an array whose offsets/sizes point into an empty values array.
   
    ```rust
      // Build a ListViewArray: [[1, 2], null, [3]]
      let list: ListViewArray = /* ... */;
   
      let data = list.to_data();
      let mut mutable = MutableArrayData::new(vec![&data], false, 3);
      mutable.extend(0, 0, 3);
   
      let result_list_view: &ListViewArray = /* ... */;
   
      // Offsets and sizes were copied, but values array is empty:
      //   offsets: [0, 2, 2], sizes: [2, 0, 1], values.len(): 0
    ```
   
   See repro test here: 
https://github.com/vegarsti/arrow-rs/commit/1ee5ae6fb5f8578812b8f457240e7016d14fa91f


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