[
https://issues.apache.org/jira/browse/ARROW-18265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17629966#comment-17629966
]
Weston Pace commented on ARROW-18265:
-------------------------------------
Note that the {{list_element}} compute function exists which should be able to
do this. Unlike {{struct_field}} however, this function is binary instead of
unary and takes the index as the second argument. In theory, that should be
fine, as you can just pass a scalar / constant value as the second argument.
> [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
> Fix For: 11.0.0
>
>
> {{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)