ClickBench run.sh restarts process per try, losing hot-run caches
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Domain
- cli, performance
Research direction
Start with datafusion-partitioned/run.sh and inspect how it invokes datafusion-cli for each try; compare the session flow with duckdb-parquet-partitioned. Run the benchmark script and verify that OS cache is dropped once, create.sql is executed once, and all three tries share one process so later tries can use hot-run caches.
Written by the indexing model from the issue text.
Description
datafusion-partitioned/run.sh invokes a fresh datafusion-cli -f create.sql ... for each of the 3 tries, not just try 1. Since create.sql does CREATE EXTERNAL TABLE ... LOCATION 'partitioned' and the default is collect_statistics = true, every try re-scans all Parquet footers in a cold process.
Other engines keep one process across tries — e.g. duckdb-parquet-partitioned runs all 3 tries in one duckdb hits.db session with parquet_metadata_cache=true. Per the ClickBench rules, tries 2–3 are meant to be hot; our script makes them effectively cold.
Fix: drop OS cache once before try 1, then run all 3 tries in a single datafusion-cli session that has already executed create.sql.
- Dominant language
- Rust
- Stars
- 9.3k
- Forks
- 2.4k
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 354
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/datafusion
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
apache/datafusion#25266 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
apache/datafusion#25213 · 1 comment ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
apache/datafusion#25168 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
apache/datafusion#24998 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/datafusion#24913 ·
All issues in apache/datafusion
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100