You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2021/11/23 17:16:00 UTC

[jira] [Commented] (ARROW-11424) [C++] Add more StructType and StructArray methods

    [ https://issues.apache.org/jira/browse/ARROW-11424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17448132#comment-17448132 ] 

Antoine Pitrou commented on ARROW-11424:
----------------------------------------

So what could be useful is adding field-setting methods such as {{AddField}}, {{RemoveField}} and {{SetField}} to {{StructType}}.


> [C++] Add more StructType and StructArray methods
> -------------------------------------------------
>
>                 Key: ARROW-11424
>                 URL: https://issues.apache.org/jira/browse/ARROW-11424
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: C++
>            Reporter: Neal Richardson
>            Priority: Major
>             Fix For: 7.0.0
>
>
> A StructType is basically a Schema (vector of Fields), right? Likewise, a StructArray is pretty much the same as a RecordBatch, right? Schema and RecordBatch have many more methods than StructType/StructArray, but we should be able to do the same kinds of things to structs.
> Also, an observation while working on ARROW-11423: the method to extract an Array column from a StructArray is called {{field()} and {{GetFieldByName()}}, which is confusing since Schema/StructType is what contains Field objects, and {{StructArray::field()}} returns Array, not Field.
> cc [~bkietz] [~apitrou]



--
This message was sent by Atlassian Jira
(v8.20.1#820001)