pub struct JoinBuild { /* private fields */ }Expand description
Right-side hash table for a capped inner join.
Built once per left×right pair via hash_join_build. JoinCursor only
stores probe coordinates so it stays Copy. Drop this when the build
relation is replaced (new allow-listed right) or the OpenNode dies — not
between output pages of the same probe.
JoinBuild::right_rows records the row count of the relation the
table was built over, and hash_join_columnar_capped debug-asserts
the probe-side right_batch matches it: a caller reusing the slot
against a DIFFERENT right relation (the star’s verdict-flip shape — a
page-filtered table probed with a whole-arm hash) fails loudly in
debug runs instead of silently reading row ids from the wrong
relation. Row count, not pointer identity: the Arc identity is lost
at this crate boundary, and a length mismatch catches the whole
observed bug class (a filtered subset of a built arm has a different
length by construction).