Skip to content

chore: bump more rand deps to 0.10 - #10556

Open
Jefffrey wants to merge 5 commits into
apache:mainfrom
Jefffrey:further-rand-upgrades
Open

chore: bump more rand deps to 0.10#10556
Jefffrey wants to merge 5 commits into
apache:mainfrom
Jefffrey:further-rand-upgrades

Conversation

@Jefffrey

@Jefffrey Jefffrey commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot added parquet Changes to the parquet crate arrow Changes to the arrow crate parquet-variant parquet-variant* crates arrow-avro arrow-avro crate arrow-row labels Aug 5, 2026

@Jefffrey Jefffrey left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There'll be one final followup, which will be the actual breaking change; all these changes so far are not visible in any of our APIs

Comment thread arrow-row/src/lib.rs
),
18 => Arc::new(generate_boolean_array(rng, len, 0.8)),
19 => Arc::new(generate_list_view(
&mut rng.clone(),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

they removed Clone from StdRng so restructured this code a little


use arrow::array::{Array, ArrayRef, BinaryViewArray, BinaryViewBuilder, StringArray, StructArray};
use arrow::buffer::Buffer;
use arrow::util::test_util::seedable_rng;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

because we had this dependency, rand dependency of parquet-variant-compute was tied to the rand dependency in arrow; decouple them since its calling this single function, makes upgrading easier in the future


fn encoded_meta(is_nullable: bool, has_lists: bool, write_path_in_schema: bool) -> Vec<u8> {
let mut rng = seedable_rng();
let mut rng = StdRng::seed_from_u64(42);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

same issue here for parquet; however we still need the dependency since we use other functions from arrow test_util; so long as we don't use any that exposes rand

@Jefffrey Jefffrey added the development-process Related to development process of arrow-rs label Aug 5, 2026
@Jefffrey
Jefffrey marked this pull request as draft August 5, 2026 00:50
@Jefffrey
Jefffrey marked this pull request as ready for review August 5, 2026 01:00
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 arrow-avro arrow-avro crate arrow-row development-process Related to development process of arrow-rs parquet Changes to the parquet crate parquet-variant parquet-variant* crates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant