Skip to main content

nodedb_sql/optimizer/
predicate_pushdown.rs

1//! Push WHERE filters through Joins into individual Scan nodes.
2
3use crate::types::*;
4
5/// Push filters down through plan nodes where possible.
6pub fn optimize(plan: SqlPlan) -> SqlPlan {
7    // Currently a no-op — filters are already attached to scans during planning.
8    // Future: split join predicates and push table-specific filters to each side.
9    plan
10}