MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / visit_columns

Method visit_columns

src/sql/src/plan/hir.rs:2289–2300  ·  view source on GitHub ↗

Visits the column references in this relation expression. The `depth` argument should indicate the subquery nesting depth of the expression, which will be incremented when entering the RHS of a join or a subquery and presented to the supplied function `f`.

(&self, depth: usize, f: &mut F)

Source from the content-addressed store, hash-verified

2287 /// which will be incremented when entering the RHS of a join or a subquery and
2288 /// presented to the supplied function `f`.
2289 pub fn visit_columns<F>(&self, depth: usize, f: &mut F)
2290 where
2291 F: FnMut(usize, &ColumnRef),
2292 {
2293 #[allow(deprecated)]
2294 let _ = self.visit_scalar_expressions(depth, &mut |e: &HirScalarExpr,
2295 depth: usize|
2296 -> Result<(), ()> {
2297 e.visit_columns(depth, f);
2298 Ok(())
2299 });
2300 }
2301
2302 #[deprecated = "Redefine this based on the `Visit` and `VisitChildren` methods."]
2303 /// Like `visit_columns`, but permits mutating the column references.

Callers 4

is_correlatedMethod · 0.45
applied_toMethod · 0.45
branchFunction · 0.45
plan_aggregate_commonFunction · 0.45

Calls 2

visit_recursivelyMethod · 0.80

Tested by

no test coverage detected