apache / apache/datafusion

Make AggregationFuzzer reproducible

Open
#12,903 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
9.3k
Forks
2.4k
Avg merge
3d 7h
Merged PRs (30d)
344

Description

### Is your feature request related to a problem or challenge?

The PR [#12667](https://github.com/apache/datafusion/pull/12667) effectively generates tests to catch the bug. However, since it uses ThreadRng to generate data, the results are non-reproducible, making it difficult to pinpoint the root cause of the failure

### Describe the solution you'd like

I want the test to generate data randomly each time, but also have the option to pass a seed, so that failing test cases can be made reproducible

### Describe alternatives you've considered

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Read PR #12667 and locate the AggregationFuzzer entry point that currently uses ThreadRng. Determine how a caller can provide a seed while retaining random generation by default, then verify that a fixed seed reproduces the same generated failing case.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.