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

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

When Contiguous Hash Joins Pay Off in DuckDB and DataFusion

Maxim Rusanov
Zenodo (CERN European Organization for Nuclear Research)
Advanced Database Systems and Queries
article

When Contiguous Hash Joins Pay Off in DuckDB and DataFusion

Maxim Rusanov
article en

Abstract

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.

Zenodo (CERN European Organization for Nuclear Research)
Advanced Database Systems and Queries
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon