Skip to main content

run

Function run 

Source
pub fn run(
    plan: &mut ExecutionPlan,
    stats: &StatsManager,
    rel_ids: &HashMap<String, RelId>,
)
Expand description

Selectivity-driven join reordering for canonical triangle and 4-cycle bodies. See module-level doc.

rel_ids is the predicate-name → RelId map used to resolve body Scans against StatsManager lookups. Production callers pass Compiler::lowerer().rel_ids(). Test callers can pass an empty map; with no StatsManager entries either, the safety floor leaves every body unchanged (legacy no-op behavior preserved).