felipecrv commented on issue #41672: URL: https://github.com/apache/arrow/issues/41672#issuecomment-2118248448
> Of course, that reason is not important for `FixedSizeListArray` given there are no offsets in this case... Technically the offsets exist the same way, but are implicit because they can be computed with `(arr.offset + i) * list_size`. Child arrays of nested layouts are required to keep the prefix-padding on the buffer when an upper level `.offset > 0` to make it so that slicing an array, doesn't have to slice recursively. This makes the zero-copy `.values` that @pvardanis wants to do, a bit trickier, but on the other hand makes slicing arrays constant-time instead of O(depth_of_the_layout) -- 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]
