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

Method sql_to_expr

datafusion/core/src/execution/session_state.rs:470–476  ·  view source on GitHub ↗
(
        &self,
        sql: &str,
        dialect: &Dialect,
    )

Source from the content-addressed store, hash-verified

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 ///

Callers 2

sql_to_exprFunction · 0.45

Calls 2

mapMethod · 0.45

Tested by 1