Skip to content

Empty lists in FixedSizeListArray::try_new is not handled #4623

@smiklos

Description

@smiklos

Describe the bug

Passing 0 as size to FixedSizeListArray::try_new panics with division by zero.

To Reproduce

Call FixedSizeListArray::try_new with 0 as size.

Expected behavior

If FixedSizeListArrays should not hold empty values, an ArrowError::InvalidArgumentError should be returned, otherwise it should be possible to construct it with 0 as length of lists contained within.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrowChanges to the arrow cratebug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions