[ https://issues.apache.org/jira/browse/ARROW-11424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17276311#comment-17276311 ]
Antoine Pitrou commented on ARROW-11424: ---------------------------------------- They're a bit different: * a StructArray has a top-level validity bitmap, a RecordBatch doesn't * a Schema has top-level metadata, a StructType doesn't Other than that, yes, they're quite similar. > [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: 4.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.3.4#803005)