-
Notifications
You must be signed in to change notification settings - Fork 1.5k
chore: Upgrade rand
crate and some other minor crates
#14967
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
base: main
Are you sure you want to change the base?
Conversation
Looks like some tests relying on random data generation may fail if the |
b6ef148
to
6f3b6c5
Compare
Depends on apache/arrow-rs#7293 |
Depends on apache/arrow-rs#7126. |
wasm pack fails because |
@mbrobbel cc as you working on the migration of arrow-rs |
#[tokio::test] | ||
// The result can be flaky if `rand` crate updated. | ||
// | ||
// Reason: Data generated by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These fuzzy tests based random data gen become non relevant because of rand
version upgrade and seems the seed now returns different random values, different from what tests expect in terms of data distribution, column data, etc making the test useless. Considering the Filter Pushdown is important test and conditions in the tests are carefully chosen to cover use cases, we probably materialize the parquet file and get rid of random data gen to avoid test to be stale when rand
crate upgraded.
@mbrobbel WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed the same (in #14447) for some different tests, which I fixed by explicitly using rand_chacha
: e.g. https://github.com/apache/datafusion/pull/14447/files#diff-4a599584dfc900ec21169f4f820a1b1db46b004b77533dab83a6178d5d3a467eR4253 following https://rust-random.github.io/book/crate-reprod.html.
Depends on apache/arrow-rs#7084 |
this wasm PR might be related https://github.com/apache/datafusion/pull/15595/files |
Which issue does this PR close?
Rationale for this change
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?