pub fn left_hash_join(
left_batch: &TermBatch,
right_batch: &TermBatch,
left_col_keys: &[usize],
right_col_keys: &[usize],
right_carry: &[usize],
soft_pairs: &[(usize, usize)],
probe_filter: Option<&LeftJoinProbeFilter<'_>>,
) -> Result<TermBatch, ExecError>Expand description
Left outer hash join: every left row is kept; unmatched right columns are unbound.
Scalar reference for SPARQL OPTIONAL (Phase 9c); production uses
left_hash_join_columnar. Empty keys use a nested-loop Diff-once path:
compatible right rows pair as a cartesian; if every optional extension is
incompatible (soft pair or probe_filter), keep the left row with unbound
right-carry — not an inner-join drop.