duckdb / duckdb/duckdb-sqlsmith

Remove hardcoded percentages from the fuzzer and put them in a file

Open
#23 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
7
Forks
13
PR merge metrics
No merged PRs in 30d

Description

Currently, the fuzzer creates statements by evaluating random percentages. This works, but if we want the fuzzer to follow a specific path to generate an expression, function_expression, or anything else, we have to modify the code in many places to make sure the control flow ends up where we want it. This works, but requires lots of recompilation and code editing that can get tiring.

If we move the hardcoded percentages out and into a file, we can then modify the percentages to nudge the fuzzer to generate statements that are more to our liking. Since these percentages can be read from a file, we also don't have to recompile, and we can just revert any changes to our percentages file.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.