Skip to content

Add a method to push struct validity into children #3859

@blaginin

Description

@blaginin

Unlike Arrow's RecordBatches, StructArray can be "nullable" in two places: in the child arrays and also at the top level. This makes some struct operations tricky - for example, how do you zip two arrays with different top-level validity?

One solution could be to add a method that pushes top-level validity down to the children (assuming all fields are nullable). For example:

{a: 1, b: 2}, NULL would become {a: 1, b: 2}, {a: NULL, b: NULL}

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureRelease label indicating a new feature or requestgood first issueGood for newcomershelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions