Is your feature request related to a problem or challenge?
Dependabot has a PR to upgrade rand_distr:
This is currently blocked as it requires rand = "0.10":
However it seems dependabot isn't raising a PR for rand = "0.10" because it removed a feature we use, small_rng.
Describe the solution you'd like
Manually upgrade to rand = "0.10" and rand_dist = "0.6"
|
rand = { workspace = true, features = ["small_rng"] } |
|
rand_distr = "0.5" |
What is involved:
- Remove use of
small_rng feature
- Replace imports of
rand::Rng with rand::RngExt
StdRng is no longer Clone, fix that somehow:
|
rng.clone().sample_iter(&Alphanumeric).take(len).collect(); |
Fill no longer implemented for slices
|
rng.fill(&mut values[..]); |
arrow-rs still depends on rand = "0.9" and we interface with this, so we need to upgrade arrow-rs
create_primitive_array comes from arrow-rs
|
let values = create_primitive_array::<T>(length, 0.0); |
Describe alternatives you've considered
No response
Additional context
See changelog for rand:
Is your feature request related to a problem or challenge?
Dependabot has a PR to upgrade
rand_distr:This is currently blocked as it requires
rand = "0.10":However it seems dependabot isn't raising a PR for
rand = "0.10"because it removed a feature we use,small_rng.Describe the solution you'd like
Manually upgrade to
rand = "0.10"andrand_dist = "0.6"datafusion/datafusion/core/Cargo.toml
Lines 175 to 176 in 89e14f1
datafusion/Cargo.toml
Line 188 in 89e14f1
What is involved:
small_rngfeaturerand::Rngwithrand::RngExtRng=>RngExt; bumprand_coreto v0.10.0-rc-6 rust-random/rand#1717StdRngis no longerClone, fix that somehow:datafusion/datafusion/common/benches/with_hashes.rs
Line 238 in 89e14f1
Fillno longer implemented for slicestrait Fillbe implemented for element types rust-random/rand#1652datafusion/datafusion/functions/src/math/random.rs
Line 85 in 89e14f1
arrow-rsstill depends onrand = "0.9"and we interface with this, so we need to upgradearrow-rscreate_primitive_arraycomes fromarrow-rsdatafusion/datafusion/functions-aggregate/benches/array_agg.rs
Line 91 in 89e14f1
Describe alternatives you've considered
No response
Additional context
See changelog for rand: