David Li created ARROW-8572: ------------------------------- Summary: [Python] Expose UnionArray.array and other fields Key: ARROW-8572 URL: https://issues.apache.org/jira/browse/ARROW-8572 Project: Apache Arrow Issue Type: Improvement Components: Python Affects Versions: 0.17.0 Reporter: David Li Assignee: David Li
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. -- This message was sent by Atlassian Jira (v8.3.4#803005)