Skip to content

Conversation

connortsui20
Copy link

@connortsui20 connortsui20 commented Oct 15, 2025

Closes #8623

As a first step for fixing #8623, this PR introduces a try_new_with_length constructor for FixedSizeListArray that takes in a len parameter for the specific case of non-nullable, degenerate arrays.

To be honest, I think updating the existing constructors makes more sense (breaking change), but this is an easier first step because we can just make try_new_with_length the new try_new from here.

I also fixed 2 cases of an existing unit test that were wrong, as well as added an extra test for the degenerate case.

Edit: I realized that the constructors also do not check if the list size correctly divides the input values.len() in try_new, so added a check for that plus more tests.

Also fixes existing tests and adds some more test cases for degenerate
`FixedSizeList`s.

Signed-off-by: Connor Tsui <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Degnerate and non-nullable FixedSizeListArrays are not handled

1 participant