You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "vegarsti (via GitHub)" <gi...@apache.org> on 2026/03/15 16:15:52 UTC
[I] MutableArrayData::extend does not copy child values for ListView arrays [arrow-rs]
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: github-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] MutableArrayData::extend does not copy child values for ListView arrays [arrow-rs]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #9561:
URL: https://github.com/apache/arrow-rs/issues/9561#issuecomment-4084938985
`label_issue.py` automatically added labels {'arrow'} from #9560
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org