MCPcopy Create free account
hub / github.com/apache/datafusion / outer_schemas_iter

Method outer_schemas_iter

datafusion/sql/src/planner.rs:328–330  ·  view source on GitHub ↗

Return an iterator of the subquery relations' schemas, innermost relation is returned first. This order corresponds to the order of resolution when looking up column references in subqueries, which start from the innermost relation and then look up the outer relations one by one until a match is found or no more outer relation exist. NOTE this is *REVERSED* order of [`Self::outer_queries_schemas

(&self)

Source from the content-addressed store, hash-verified

326 /// This is useful to resolve the column reference in the subquery by
327 /// looking up the outer query schemas one by one.
328 pub fn outer_schemas_iter(&self) -> impl Iterator<Item = &DFSchemaRef> {
329 self.outer_queries_schemas_stack.iter().rev()
330 }
331
332 /// Sets the outer query schema, returning the existing one, if
333 /// any

Callers 3

plan_selectionMethod · 0.80

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected