Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-9278: [C++][Python] Remove validity bitmap from Union types, up…
…date IPC read/write and integration tests I am using the same `DataTypeLayout::AlwaysNull()` strategy for `ArrayData::buffers[0]` as with NullType and like with NullType, no validity buffer is sent or received in the IPC paths. There are some related changes here that are a minor API breakage around the behavior of `AppendNull` and `AppendNulls` for `StructBuilder` and the union builder classes. The issue is that these functions really should take responsibility for maintaining the internal consistency of the child builders through null appends. I deleted some code in several places where this detail leaked outside of these functions. While there is some risk of breaking third party code (if they are using these builders), it seems ultimately like the right thing to do Assuming the Union and Metadata V5 votes carry on the mailing list, we will want to add backwards compatibility code for reading V4 metadata, accepting unions that do not have any top-level nulls but rejecting ones that do. Closes #7598 from wesm/ARROW-9278 Authored-by: Wes McKinney <wesm@apache.org> Signed-off-by: Wes McKinney <wesm@apache.org>
- Loading branch information