Skip to main content

nodedb_sql/optimizer/
predicate_pushdown.rs

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