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 2022/11/04 11:57:29 UTC

[GitHub] [arrow] lidavidm commented on pull request #14395: ARROW-17960: [C++][Python] Implement list_slice kernel

lidavidm commented on PR #14395:
URL: https://github.com/apache/arrow/pull/14395#issuecomment-1303332135

   > What do we want to use as the default return type for slicing a variable size list? Return a fixed size list (padding with nulls to get the correct length), or keep a variable size list (not padding with nulls, just slice until the end if stop > size of a list element)
   
   IMO it makes more sense to slice variable sized lists to variable sized lists by default.
   
   > For slicing fixed size list arrays, what do we want to do when slicing until after the end (stop > list size)? Padding with nulls and always return a fixed size list of size stop - start, or slice until the end (Python slice semantics) and return a fixed size list of size min(list_size, stop -start)
   
   I agree with Miles's proposal above. 


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