You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/07/22 08:38:24 UTC

[GitHub] [arrow-rs] nevi-me opened a new issue #594: Slicing list> doesn't pass the list offsets to struct children

nevi-me opened a new issue #594:
URL: https://github.com/apache/arrow-rs/issues/594


   **Describe the bug**
   
   We resolved struct slices by passing the offset and length to child data, but this doesn't work on lists that have struct children, because when slicing lists, we don't pass its offset and length to its child data (a list has 1 child datum). This is because we can calculate this at runtime when indexing into a list.
   
   **To Reproduce**
   
   * Create a `list<struct<[int]>>` or a `map` array.
   * Slice the array
   * Try to slice into the array
   
   **Expected behavior**
   
   We should correctly slice into lists of structs, and maps
   
   **Additional context**
   
   I picked this up while addressing reviews on #491 
   


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