Skip to content

Allow the adversarial_filter benchmark for the DataFusion repos#9

Open
adriangb wants to merge 1 commit into
mainfrom
add-adversarial-filter-benchmark
Open

Allow the adversarial_filter benchmark for the DataFusion repos#9
adriangb wants to merge 1 commit into
mainfrom
add-adversarial-filter-benchmark

Conversation

@adriangb
Copy link
Copy Markdown
Owner

@adriangb adriangb commented Jun 2, 2026

Adds adversarial_filter to the standard benchmark allowlist for both apache/datafusion and adriangb/datafusion.

It's a sql_benchmarks suite (added in apache/datafusion#22698) that stress-tests adaptive filter conjunct reordering: five equally-expensive regexp predicates with the selective one written last — a case the static cost heuristic and BinaryExpr pre-selection both leave mis-ordered.

  • Runs via the standard path: bench.sh run adversarial_filterBENCH_NAME=adversarial_filter cargo bench --bench sql.
  • Data is generated inline by the suite (no external dataset).
  • Toggle the optimization per side with DATAFUSION_EXECUTION_ADAPTIVE_FILTER_REORDERING (the same config env var the dfbench suites read via SessionConfig::from_env).

Because the suite + flag only exist on the feature branch, compare it by pointing both baseline and changed at that branch with the flag differing per side.

Requires a controller redeploy to take effect (allowlist is baked into BENCHMARK_CONFIG).

🤖 Generated with Claude Code

Add `adversarial_filter` to the `standard` allowlist for both
`apache/datafusion` and `adriangb/datafusion`. It is a `sql_benchmarks`
suite (run via `bench.sh run adversarial_filter`) that stress-tests adaptive
filter conjunct reordering; toggle the optimization per side with
`DATAFUSION_EXECUTION_ADAPTIVE_FILTER_REORDERING`.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant