Jefffrey opened a new issue, #21839: URL: https://github.com/apache/datafusion/issues/21839
### Is your feature request related to a problem or challenge? Dependabot has a PR to upgrade `rand_distr`: - https://github.com/apache/datafusion/pull/20403 This is currently blocked as it requires `rand = "0.10"`: - https://github.com/rust-random/rand_distr/blob/66f6791fd846ff28af51ac55d16032605a048256/CHANGELOG.md#060--2026-02-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"` https://github.com/apache/datafusion/blob/89e14f1de500e3f117574d91443b2c22520105c6/datafusion/core/Cargo.toml#L175-L176 https://github.com/apache/datafusion/blob/89e14f1de500e3f117574d91443b2c22520105c6/Cargo.toml#L188 What is involved: - Remove use of `small_rng` feature - Minimal impact (code we rely on wasn't removed, just the feature gate) - Reference: https://github.com/rust-random/rand/pull/1732 - Replace imports of `rand::Rng` with `rand::RngExt` - Reference: https://github.com/rust-random/rand/pull/1717 - `StdRng` is no longer `Clone`, fix that somehow: - Reference: https://github.com/rust-random/rand/pull/1677 https://github.com/apache/datafusion/blob/89e14f1de500e3f117574d91443b2c22520105c6/datafusion/common/benches/with_hashes.rs#L238 - `Fill` no longer implemented for slices - Reference: https://github.com/rust-random/rand/pull/1652 https://github.com/apache/datafusion/blob/89e14f1de500e3f117574d91443b2c22520105c6/datafusion/functions/src/math/random.rs#L85 - `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` https://github.com/apache/datafusion/blob/89e14f1de500e3f117574d91443b2c22520105c6/datafusion/functions-aggregate/benches/array_agg.rs#L91 ### Describe alternatives you've considered _No response_ ### Additional context See changelog for rand: - https://github.com/rust-random/rand/blob/b1ad27346a9637979c2e286988b0aa55f771ecc9/CHANGELOG.md#0100---2026-02-08 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
