(
&self,
t: TableWithJoins,
planner_context: &mut PlannerContext,
)
| 25 | |
| 26 | impl<S: ContextProvider> SqlToRel<'_, S> { |
| 27 | pub(crate) fn plan_table_with_joins( |
| 28 | &self, |
| 29 | t: TableWithJoins, |
| 30 | planner_context: &mut PlannerContext, |
| 31 | ) -> Result<LogicalPlan> { |
| 32 | let mut left = if is_lateral(&t.relation) { |
| 33 | self.create_relation_subquery(t.relation, planner_context)? |
| 34 | } else { |
| 35 | self.create_relation(t.relation, planner_context)? |
| 36 | }; |
| 37 | let old_outer_from_schema = planner_context.outer_from_schema(); |
| 38 | for join in t.joins { |
| 39 | planner_context.extend_outer_from_schema(left.schema())?; |
| 40 | left = self.parse_relation_join(left, join, planner_context)?; |
| 41 | } |
| 42 | planner_context.set_outer_from_schema(old_outer_from_schema); |
| 43 | Ok(left) |
| 44 | } |
| 45 | |
| 46 | pub(crate) fn parse_relation_join( |
| 47 | &self, |
no test coverage detected