make big joins even less likely

This commit is contained in:
Jussi Saurio
2025-08-14 19:34:54 +03:00
parent f5438d14de
commit 165f2aed23

View File

@@ -26,9 +26,9 @@ impl Arbitrary for Create {
impl ArbitraryFrom<&Vec<Table>> for FromClause {
fn arbitrary_from<R: Rng>(rng: &mut R, tables: &Vec<Table>) -> Self {
let num_joins = match rng.gen_range(0..=100) {
0..=80 => 0,
81..=95 => 1,
96..=100 => 2,
0..=90 => 0,
91..=97 => 1,
98..=100 => 2,
_ => unreachable!(),
};