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

Revert "Update rand requirement from 0.8 to 0.9 (#7045)" #7125

Merged
merged 2 commits into from
Feb 12, 2025

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Feb 12, 2025

Which issue does this PR close?

It turns out rand appears in the arrow public API, see

This we can not update rand until the next major arrow release

I will also prepare a PR to reapply the change when main open for the nect release

Rationale for this change

What changes are included in this PR?

This reverts commit 69eeee3.

Are there any user-facing changes?

No as this update hasn't been released yet

cc @tustvold and @mbrobbel

@github-actions github-actions bot added parquet Changes to the parquet crate arrow Changes to the arrow crate object-store Object Store Interface labels Feb 12, 2025
@tustvold
Copy link
Contributor

I don't think we need to revert this for object_store FWIW

@@ -53,7 +53,7 @@ arrow-schema = { workspace = true }
arrow-select = { workspace = true }
arrow-string = { workspace = true }

rand = { version = "0.9", default-features = false, features = ["std", "std_rng", "thread_rng"], optional = true }
rand = { version = "0.8", default-features = false, features = ["std", "std_rng"], optional = true }
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we could just revert the changes in this crate

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think you are right, but it would take me more time to teas apart the PRs. I am instead going to try and back out the entire original PR and then reapply it

@alamb
Copy link
Contributor Author

alamb commented Feb 12, 2025

Ah, I think I actually hit this in apache/datafusion#14447:

I think publically exporting the rand version used by arrow will make such upgrades easier. I'll make a PR

@alamb
Copy link
Contributor Author

alamb commented Feb 12, 2025

I think publically exporting the rand version used by arrow will make such upgrades easier. I'll make a PR

I tried to explain what is going on on

@alamb
Copy link
Contributor Author

alamb commented Feb 12, 2025

So what I plan to do is to merge this PR in when it passes the CI.

We can discuss publically exporting rand separately

@alamb alamb merged commit 34b2184 into apache:main Feb 12, 2025
34 checks passed
@alamb alamb deleted the alamb/revert_rand branch February 12, 2025 14:37
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 object-store Object Store Interface parquet Changes to the parquet crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants