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
[C++][Python] StructArray flattening aborts on a sparse union child and drops nulls on a run-end encoded child #55958
Describe the bug, including details regarding any error messages, version, and platform.
StructArray::GetFlattenedField sets buffers[0] on the child whatever its type. A sparse union has no validity bitmap, so SparseUnionArray::SetData hits ARROW_CHECK_EQ(data_->buffers[0], nullptr) and the process aborts. A run-end encoded child takes no validity bitmap either, so the struct's null row is silently lost. Both StructArray.flatten() and RecordBatch.from_struct_array() go through it.
pyarrow 26.0.1, Windows 11, Python 3.15. The code is the same on main.
An int64 or null child works as expected. I would expect the null row to reach the run-end encoded and union children, or an error. A check failure that kills the interpreter can't be caught from Python.
Activity