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

[Python] Expose UnionArray.array and other fields

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.17.0
    • 1.0.0
    • Python

    Description

      Currently in Python, you can construct a UnionArray easily, but getting the data back out (without copying) is near-impossible. We should expose the getter for UnionArray.array so we can pull out the constituent arrays. We should also expose fields like mode while we're at it.

      The use case is: in Flight, we'd like to write multiple distinct datasets (with distinct schemas) in a single logical call; using UnionArrays lets us combine these datasets into a single logical dataset.

      Attachments

        Issue Links

          Activity

            Issue resolved by pull request 7027
            https://github.com/apache/arrow/pull/7027

            npr Neal Richardson added a comment - Issue resolved by pull request 7027 https://github.com/apache/arrow/pull/7027
            rokm Rok Mihevc added a comment -

            This issue has been migrated to issue #24738 on GitHub. Please see the migration documentation for further details.

            rokm Rok Mihevc added a comment - This issue has been migrated to issue #24738 on GitHub. Please see the migration documentation for further details.

            People

              lidavidm David Li
              lidavidm David Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 40m
                  40m