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

don't use std abs_diff, put it in test_utils instead, run tests with msrv in action #596

Merged
merged 2 commits into from
Dec 13, 2024

Conversation

nicklan
Copy link
Collaborator

@nicklan nicklan commented Dec 13, 2024

What changes are proposed in this pull request?

  • create an abs_diff function in test_utils (same code as in std)
  • use that in the two places we wanted it instead
  • also add a workflow to make sure that we can always compile against msrv

How was this change tested?

  • Existing tests pass
  • New workflow passes

@nicklan nicklan changed the title don't use std abs_diff, put it in test_utils instead don't use std abs_diff, put it in test_utils instead, build tests with msrv Dec 13, 2024
Copy link
Collaborator

@zachschuermann zachschuermann left a comment

Choose a reason for hiding this comment

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

nice thanks LGTM! (blocking 0.6 release on this PR)

@nicklan nicklan changed the title don't use std abs_diff, put it in test_utils instead, build tests with msrv don't use std abs_diff, put it in test_utils instead, run tests with msrv in action Dec 13, 2024
@nicklan nicklan merged commit 71deaa3 into delta-io:main Dec 13, 2024
18 of 19 checks passed
@@ -106,3 +106,13 @@ pub fn into_record_batch(engine_data: Box<dyn EngineData>) -> RecordBatch {
.unwrap()
.into()
}

/// We implement abs_diff here so we don't have to bump our msrv.
/// TODO: Remove and use std version when msrv >= 1.81.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we have a tracking issue for this so we don't forget?
(really it would be neat if rust had a way to annotate these sorts of workarounds, so they start failing once MSRV bumps)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

good call :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants