-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Superimpose null masks for STRUCT columns. (#9144)
Per #5700, when a STRUCT column is constructed, the null mask of the parent column is bitwise-ANDed with that of all its children, such that a null row in the parent column corresponds to nulls in all its children. This is done recursively, allowing grand-child columns to also have nulls at the same row positions. `superimpose_parent_nulls()` makes this functionality available for columns that might not have been constructed through `make_struct_column()`, e.g. with columns received directly from Arrow. It does not require that the `column_view` is modifiable. For a STRUCT `column_view` argument, a new equivalent instance is created, with all its children's null masks modified to account for the parent nulls. `superimpose_parent_nulls()` can be used for all code that assumes that the child null masks account for the nulls in the parents (and grandparents, ad infinitum). Authors: - MithunR (https://github.com/mythrocks) Approvers: - Nghia Truong (https://github.com/ttnghia) - Conor Hoekstra (https://github.com/codereport) URL: #9144
- Loading branch information
Showing
3 changed files
with
400 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.