(
&self,
sql: &str,
dialect: &Dialect,
)
| 468 | /// See [`Self::create_logical_expr`] for parsing sql to [`Expr`]. |
| 469 | #[cfg(feature = "sql")] |
| 470 | pub fn sql_to_expr( |
| 471 | &self, |
| 472 | sql: &str, |
| 473 | dialect: &Dialect, |
| 474 | ) -> datafusion_common::Result<SQLExpr> { |
| 475 | self.sql_to_expr_with_alias(sql, dialect).map(|x| x.expr) |
| 476 | } |
| 477 | |
| 478 | /// parse a sql string into a sqlparser-rs AST [`SQLExprWithAlias`]. |
| 479 | /// |