[
https://issues.apache.org/jira/browse/ARROW-18265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17637392#comment-17637392
]
Weston Pace commented on ARROW-18265:
-------------------------------------
I agree {{pc.field(0)}} should not mean to select the first element of each
list value (eg in projections). I thought the proposal here was only for the
form square-bracket --> numbers --> square bracket (e.g. {{[0]}})
> [C++] Allow FieldPath to work with ListElement
> ----------------------------------------------
>
> Key: ARROW-18265
> URL: https://issues.apache.org/jira/browse/ARROW-18265
> Project: Apache Arrow
> Issue Type: Improvement
> Components: C++
> Reporter: Miles Granger
> Assignee: Miles Granger
> Priority: Major
> Labels: pull-request-available
> Fix For: 11.0.0
>
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> {{FieldRef::FromDotPath}} can parse a single list element field. ie.
> {{{}'path.to.list[0]`{}}}but does not work in practice. Failing with:
> _struct_field: cannot subscript field of type list<....>_
> Being able to add a slice or multiple list elements is not within the scope
> of this issue.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)