Skip to content

Concating struct arrays with no fields unnecessarily errors #7828

Closed
@AdamGS

Description

@AdamGS

Describe the bug

Calling concat on StructArrays with no fields will always error

To Reproduce

fn concat_empty_structs() {
        let s1 = StructArray::new_empty_fields(10, None);
        let s2 = StructArray::new_empty_fields(10, None);
        // This will currently panic
        let arr = concat(&[&s1, &s2]).unwrap();
}

Expected behavior

Return a struct array with no fields and the correct nulls and length.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions