When Contiguous Hash Joins Pay Off in DuckDB and DataFusion
This technical report studies when contiguous build-side indexes pay off in hash joins. It compares two independent integrations with native execution in single-thread DuckDB 1.5.6 and Apache DataFusion 55.2.0. In DataFusion, automatic CSR selection at the original 200,000-row build threshold reduced the sum of per-query median times by 73% on 35 SNAP graph queries and 11.7% on 100 JOB queries. DuckDB's contiguous-row policy improved the geometric-mean speed ratio on SNAP and regressed on JOB. The report examines build cost, probe locality and payload gathering, and derives a break-even rule using the number of matching pairs per probe and the cost of extra candidate visits. The accompanying GitHub release provides code and reproduction instructions. This technical report is listed in the official DuckDB Library.
Authors
- Maxim Rusanov
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-25
- DOI
- https://doi.org/10.5281/zenodo.24519117
- Primary Topic
- Advanced Database Systems and Queries
- Type
- article
- Field-Weighted Citation Impact
- 0.00