MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / analyze_join_sides

Function analyze_join_sides

nodedb-sql/src/planner/bitmap_emit/hashjoin.rs:38–43  ·  view source on GitHub ↗

Analyze both join children and return bitmap-pushdown hints. Neither side is penalized for being analyzed — if both qualify, both hints are emitted so the executor can inject prefilters on both probe scans. This is safe: the executor will only use the bitmap that matches the collection it is about to scan.

(left: &SqlPlan, right: &SqlPlan)

Source from the content-addressed store, hash-verified

36/// This is safe: the executor will only use the bitmap that matches the
37/// collection it is about to scan.
38pub fn analyze_join_sides(left: &SqlPlan, right: &SqlPlan) -> BitmapJoinHints {
39 BitmapJoinHints {
40 left: predicate::analyze(left),
41 right: predicate::analyze(right),
42 }
43}

Callers 1

convert_joinFunction · 0.85

Calls 1

analyzeFunction · 0.70

Tested by

no test coverage detected