Jul 15, 2026
OLAP – Phase 7 Hash Join
Analytical queries rarely touch a single table. “Revenue by region” needs to join orders with regions. “Sales by product category” needs to join sales with products with categories. The hash join is the standard OLAP join algorithm — it builds a hash table from one table (the smaller one), then probes it with the other (the larger one), achieving O(n + m) complexity instead of nested-loop’s O(n x m).
This phase implements the HashJoinOperator with support for INNER and LEFT joins, including NULL key handling.