[
https://issues.apache.org/jira/browse/ARROW-17960?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Li resolved ARROW-17960.
------------------------------
Fix Version/s: 11.0.0
Resolution: Fixed
Issue resolved by pull request 14395
[https://github.com/apache/arrow/pull/14395]
> [C++] Add kernel for slicing list values
> ----------------------------------------
>
> Key: ARROW-17960
> URL: https://issues.apache.org/jira/browse/ARROW-17960
> Project: Apache Arrow
> Issue Type: Improvement
> Components: C++
> Reporter: Joris Van den Bossche
> Assignee: Miles Granger
> Priority: Major
> Labels: pull-request-available
> Fix For: 11.0.0
>
> Time Spent: 14h 10m
> Remaining Estimate: 0h
>
> This would be a scalar kernel "List<T> -> List<T>" (or to fixed size list?),
> where you can subset the values in each list element.
> So for example, giving the list array:
> {code}
> arr = pa.array([[1, 2, 3], [4, 5, 6, 7], [8, 9]])
> {code}
> we could do something like the following to get the first two elements of
> each list:
> {code}
> pc.list_slice(arr, start=0, stop=2)
> -> pa.array([[1, 2], [4, 5], [8, 9]])
> {code}
> This would supplement the existing {{list_element}} kernel.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)