datafusion
datafusion copied to clipboard
Improve `AggregateFuzz` testing: generate random queries
Which issue does this PR close?
Part of https://github.com/apache/datafusion/issues/12114
Rationale for this change
Now that we have a great aggregation fuzz testing framework from @Rachelint , lets use it to increase coverage
Specifically while thinking about how to improve test coverage I think the key constraints are what types are supported by what aggregate functions. Thus it makes sense to have different functions tested in different combinations
What changes are included in this PR?
- Add a query generator to randomly create queries
- Update aggregate fuzz testing to cover various permutations of types and aggregates
- List other potential things to test
Are these changes tested?
Only tests
Are there any user-facing changes?
No, only tests
FYI @Rachelint
The query generator seems really excellent!
Thank you @goldmedal
Thanks @alamb and @Rachelint for reviewing!