Skip to content

Conversation

@adamreeve
Copy link
Contributor

Which issue does this PR close?

Closes #7641.

Rationale for this change

Makes these tests compatible with Miri, which now adds error to floating point operations to check that tests aren't depending on exact results.

Are there any user-facing changes?

No

@github-actions github-actions bot added the arrow Changes to the arrow crate label Jun 11, 2025
@adamreeve
Copy link
Contributor Author

I've tested that .github/workflows/miri.sh passes on my machine with the latest nightly rust.

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.

makes sense to me -- thank you for the fix @adamreeve (and the report, and the debugging and research) ❤️

Copy link
Contributor

@etseidl etseidl left a comment

Choose a reason for hiding this comment

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

I was wondering if the tolerances should be tighter for f32 and f64, but that's not really the point of the tests. Thanks for the quick fix!

@etseidl etseidl merged commit e32f545 into apache:main Jun 12, 2025
26 checks passed
@adamreeve adamreeve deleted the pow-test-fix branch June 12, 2025 21:00
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.

Miri test_native_type_pow test failing

3 participants