Repository navigation
More fuzzing features - #109194
More fuzzing features#109194
Conversation
|
Workflow [PR], commit [0b7832a] Summary: ❌
AI ReviewSummaryThis PR expands Findings❌ Blockers
Final Verdict❌ Request changes |
# Conflicts: # src/Common/QueryFuzzer.cpp
|
📊 Cloud Performance Report 🔴 AI verdict: This PR only modifies the BuzzHouse fuzzer and the client/CI plumbing (format handling, hypothetical-index bookkeeping, reconnect logic); it does not touch any server query-execution code that ClickBench exercises. The flagged deltas on Q10, Q16, Q18, Q30, Q32-34 are therefore off-path and best read as run-to-run variance, so they have been downgraded or left as not-sure. Q11's 36% delta is large and consistent enough to clear the automatic trust threshold, so its verdict stands by rule — but with nothing in this change able to affect that query, it should be treated as a measurement artifact and re-checked, not as a real regression. clickbench🔴 1 regressed · Flagged queries (8 of 43)
q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. tpch_adapted_1_official🟢 No significant changes Debug info
|
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 9/17 (52.94%) · Uncovered code |
| const InFormat iinf = (outIn.contains(outf)) && rg.nextBool() | ||
| ? outIn.at(outf) | ||
| : static_cast<InFormat>((rg.nextLargeNumber() % static_cast<uint32_t>(InFormat_MAX)) + 1); | ||
| const String outf = rg.pickRandomly((!this->allow_not_deterministic || rg.nextBool()) ? fc.in_out_formats : fc.out_formats); |
There was a problem hiding this comment.
This switches the deterministic URL round-trip generator from the old curated outFormats pool to raw system.formats names. fc.in_out_formats now contains formats like Template and schema-driven formats such as Protobuf / CapnProto, but this path never adds format_template_*, format_schema, or similar settings; formatToRead only checks that an input format with the same name exists. Once outf lands on one of those formats, the generated url(...) source is a guaranteed exception instead of exercising the round-trip path.
The same regression exists in src/Client/BuzzHouse/Generator/StatementGenerator.cpp:1086 for the sink-side URL path. Can we keep a self-contained round-trippable allowlist here, or otherwise filter out formats that need extra settings or schema?
| } | ||
| gen.entries.clear(); | ||
| ff->set_outformat(rg.pickRandomly(rg.pickRandomly(can_test_oracle_result ? QueryOracle::oracleFormats : outFormats))); | ||
| ff->set_format(rg.pickRandomly(can_test_oracle_result ? QueryOracle::oracleFormats : fc.out_formats)); |
There was a problem hiding this comment.
generateExportQuery used to sample from the curated outFormats subset here; switching it to raw fc.out_formats now pulls in output-only or extra-setting formats such as Null, Template, Pretty*, XML, and similar formats that this oracle never configures. generateImportQuery only uses formatToRead to map the format name back, so it still never adds format_template_*, format_schema, or any other per-format settings.
That means a large fraction of non-comparison runs now collapse into guaranteed export/import failures or empty Null exports instead of round-tripping table data. Please keep this on a self-contained readable subset, similar to the old list.
More fuzzing features
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Extend BuzzHouse, AST fuzzer and La Casa Del Dolor to cover more SQL surface.
Prune incompatible option combinations so generated CREATE TABLEs are valid (Paimon first-row merge engine, deletion vectors, snapshot.num-retained min/max; Delta deletion vectors vs incremental symlink manifests; VARIANT forces Parquet; drop unavailable brotli/lzo codecs). Harden the Spark session lifecycle: disk-backed scratch space with a stale-directory sweeper, register tables only after a successful CREATE, and serialize session use.
Version info
26.7.1.698(included in26.7and later)