You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Python] Cannot use sparse_union/dense_union types with pa.Table.from_pylist() #44182
Traceback (most recent call last):
File "/Users/rusty/Development/flight-cloud/src/flight_cloud/example-union.py", line 7, in <module>
table = pa.Table.from_pylist(data, schema=schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pyarrow/table.pxi", line 1984, in pyarrow.lib._Tabular.from_pylist
File "pyarrow/table.pxi", line 6230, in pyarrow.lib._from_pylist
File "pyarrow/table.pxi", line 4758, in pyarrow.lib.Table.from_arrays
File "pyarrow/table.pxi", line 1562, in pyarrow.lib._sanitize_arrays
File "pyarrow/array.pxi", line 398, in pyarrow.lib.asarray
File "pyarrow/array.pxi", line 368, in pyarrow.lib.array
File "pyarrow/array.pxi", line 42, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: sparse_union
This occurs both when using pa.sparse_union and pa.dense_union.
This still happens on 26.0.0: pa.array() and pa.Table.from_pylist() raise ArrowNotImplementedError for both sparse_union and dense_union types, because converting Python objects to union arrays has not been implemented. That is tracked in #19157, so I'm closing this as a duplicate of that issue.
Activity
jonasdedden commentedon Oct 28, 2025
Can confirm this issue in
pyarrowversion22.0.0.thisisnic commentedon Nov 20, 2026
This still happens on 26.0.0:
pa.array()andpa.Table.from_pylist()raiseArrowNotImplementedErrorfor bothsparse_unionanddense_uniontypes, because converting Python objects to union arrays has not been implemented. That is tracked in #19157, so I'm closing this as a duplicate of that issue.