Method
sql_expr_to_logical_expr_with_alias
(
&self,
sql: SQLExprWithAlias,
schema: &DFSchema,
planner_context: &mut PlannerContext,
)
Source from the content-addressed store, hash-verified
| 56 | |
| 57 | impl<S: ContextProvider> SqlToRel<'_, S> { |
| 58 | pub(crate) fn sql_expr_to_logical_expr_with_alias( |
| 59 | &self, |
| 60 | sql: SQLExprWithAlias, |
| 61 | schema: &DFSchema, |
| 62 | planner_context: &mut PlannerContext, |
| 63 | ) -> Result<Expr> { |
| 64 | let mut expr = |
| 65 | self.sql_expr_to_logical_expr(sql.expr, schema, planner_context)?; |
| 66 | if let Some(alias) = sql.alias { |
| 67 | expr = expr.alias(alias.value); |
| 68 | } |
| 69 | Ok(expr) |
| 70 | } |
| 71 | pub(crate) fn sql_expr_to_logical_expr( |
| 72 | &self, |
| 73 | sql: SQLExpr, |