Jefffrey commented on PR #10094:
URL: https://github.com/apache/arrow-rs/pull/10094#issuecomment-4675672374
i suppose the closest we could get is slicing away any unused parts of the
run_ends/values, for example:
```
// represents: [a,a,b,b,b,a,a,a,c,c]
Runarray = {run_ends: [2,5,8,10], values:["a","b","a","c"], offset = 0,
length = 10}
let sliced = Runarray.slice(3,5)
// represents: [b,b,a,a,a]
// now physically
sliced = {run_ends: [5,8], values:["b","a"], offset = 3, length = 5}
```
- the sliced run_ends and values are just slices of the originals, to keep
this as zero-copy
though i don't know if there are any edge cases this might miss 🤔
--
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]