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][Parquet] Writing a sparse union column raises ArrowNotImplementedError #53595
pyarrow.lib.ArrowNotImplementedError: Unhandled type for Arrow to Parquet schema conversion: sparse_union<a: int64=0, b: string=1>
pa.ListArray.from_arrays([0, 2], union) and pa.StructArray.from_arrays([union], names=["f"]) raise the same error.
pyarrow 26.0.0 and 25.0.1, Python 3.14, macOS arm64.
#28288 reported the same error for dense unions and was closed as stale without a resolution.
Parquet has no union type, but a sparse union's children are each as long as the union, so it maps onto a group of its children plus a type-code column. The stored Arrow schema (ARROW:schema) could then restore the union on read, as it already restores duration written as INT64. If write support is out of scope, documenting the limitation would help.
This issue was drafted with an AI assistant, which also ran the reproducer on pyarrow 26.0.0 and 25.0.1. I reviewed it before filing.
Activity