Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-11424

[C++] Add more StructType and StructArray methods

    XMLWordPrintableJSON

Details

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              pradeepgarigipati Pradeep Garigipati
              npr Neal Richardson
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h