rusanoph commented on PR #27746:
URL: https://github.com/apache/datafusion/pull/27746#issuecomment-7165000139

   I'd like to share the results of an independent research study relevant to 
this hash join redesign.
   
   I recently published **[When Contiguous Hash Joins Pay Off in DuckDB and 
DataFusion](https://doi.org/10.5281/zenodo.24519118)**, motivated by Birler et 
al.'s Unchained hash table paper (DaMoN 2024).
   
   The study includes experimental integrations into DuckDB 1.5.6 and 
DataFusion 55.2.0, an analytical break-even model, and reproducible artifacts 
backed by 24,282 benchmark observations.
   
   In DataFusion, automatic CSR selection reduced aggregate query time compared 
to native execution in single-threaded experiments:
   
   | Workload | Queries | Time reduction |
   | --- | ---: | ---: |
   | SNAP graph self-joins | 35 | 73% |
   | JOB | 100 | 11.7% |
   | TPC-H SF10 | 20 | 2.6% |
   | TPC-DS SF10 | 94 | 0.1% |
   
   A particularly interesting finding is the workload-dependent cost of 
constructing contiguous layouts. Lowering the build threshold from 200K to 50K 
rows yielded a **2.177× speedup** on 12 held-out graph queries, while producing 
essentially no change on 31 affected analytical queries.
   
   The paper also examines why build-side multiplicity alone is insufficient to 
characterize probe demand and derives a break-even condition accounting for 
both key distributions and layout construction costs.
   
   **Research artifacts:**
   - [Technical report](https://doi.org/10.5281/zenodo.24519118)
   - [Source code and research 
repository](https://github.com/rusanoph/unchained-hash-join-research)
   - [DataFusion results and reproducible Enron 
benchmark](https://github.com/rusanoph/unchained-hash-join-research/blob/main/datafusion/docs/results.md)
   
   Although my experimental implementation differs from the design proposed 
here, I believe these findings and graph workloads could complement the 
existing `hj` benchmarks.
   
   I'd be interested in contributing comparative benchmark results for this 
redesign and discussing potential follow-up optimizations.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to