You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
re-export arrow::utilrand version, breaking downstreams on a different rand major #10685
While updating DataFusion to arrow 60 I found that the rand0.10 upgrade in #10566 breaks downstream users of arrow::util::bench_util and arrow::util::test_util that are on a different rand major. These APIs expose arrow's rand version in their signatures:
bench_util::create_primitive_array has a StandardUniform: Distribution<T::Native> bound, which callers must restate in their own generic code — but they can only name theirrand's StandardUniform
We had to remove the generic bound (pinning T::Native = i64) and replace seedable_rng with a local copy:
/// Returns a fixed-seed RNG using this crate's `rand` version (arrow's/// `test_util::seedable_rng` returns its own `rand` version's `StdRng`)fnseedable_rng() -> StdRng{StdRng::seed_from_u64(42)}
Describe the solution you'd like
Re-export arrow's rand (e.g. pub use rand; from arrow::util under the relevant feature) so downstreams can name the right StandardUniform/StdRng types when calling these APIs, regardless of which rand they depend on themselves.
Describe alternatives you've considered
Downstreams can avoid the generic bounds and copy seedable_rng locally, as shown above.
At a minimum, call this out in the arrow 60 release notes / upgrade guide, since the breakage only shows up in downstream test and bench code.
changed the title [-]`arrow::util` test/bench APIs leak the `rand` version, breaking downstreams on a different rand major[/-][+]re-export `arrow::util` `rand` version, breaking downstreams on a different rand major[/+]on Aug 14, 2026
Activity
[-]`arrow::util` test/bench APIs leak the `rand` version, breaking downstreams on a different rand major[/-][+]re-export `arrow::util` `rand` version, breaking downstreams on a different rand major[/+]feat(arrow): re-export rand from arrow::util under test_utils feature
Re-export `rand` crate in `arrow::util` (#10687)
Re-export `rand` crate in `arrow::util` (apache#10687)