Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use force_validate feature flag when creating an arrays #7241

Merged
merged 1 commit into from
Mar 8, 2025

Conversation

rluvaton
Copy link
Contributor

@rluvaton rluvaton commented Mar 6, 2025

Which issue does this PR close?

N/A

Rationale for this change

Sometimes I use new_unchecked to create arrays for perfromance reasons, but for testing I would like to always assert so I'm using the force_validate feature flag.

What changes are included in this PR?

Force validate for ByteArray, ByteViewArray, DictionaryArray and StructArray, also changed test_empty_string_with_non_zero_offset in ffi to only run when not having force validate

Are there any user-facing changes?

Kind of

@github-actions github-actions bot added the arrow Changes to the arrow crate label Mar 6, 2025
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me -- thank you @rluvaton

@tustvold tustvold merged commit 46d1612 into apache:main Mar 8, 2025
26 checks passed
@rluvaton rluvaton deleted the add-force-validate-to-array branch March 9, 2025 11:58
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.

3 participants