Skip to content

fix: don't panic on ArrayData::try_new on bad input even when force_validate feature is on#10282

Open
rluvaton wants to merge 4 commits into
apache:mainfrom
rluvaton:fix-avoid-panic-on-array-data-try-new-with-force-validate
Open

fix: don't panic on ArrayData::try_new on bad input even when force_validate feature is on#10282
rluvaton wants to merge 4 commits into
apache:mainfrom
rluvaton:fix-avoid-panic-on-array-data-try-new-with-force-validate

Conversation

@rluvaton

@rluvaton rluvaton commented Jul 4, 2026

Copy link
Copy Markdown
Member

Which issue does this PR close?

N/A

Rationale for this change

the caller of try_new is responsible for handling errors, so it should not panic even when force_validate feature is on.

the added benefit is that validation is not called twice on try_new when force_validate feature is on

What changes are included in this PR?

use builder validation call

Are these changes tested?

yes

Are there any user-facing changes?

error instead of panic


Found while testing:

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.

1 participant