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

Method parse_sql_into_expr_with_dialect

datafusion/sql/src/parser.rs:480–488  ·  view source on GitHub ↗
(
        sql: &str,
        dialect: &dyn Dialect,
    )

Source from the content-addressed store, hash-verified

478 }
479
480 pub fn parse_sql_into_expr_with_dialect(
481 sql: &str,
482 dialect: &dyn Dialect,
483 ) -> Result<ExprWithAlias, DataFusionError> {
484 DFParserBuilder::new(sql)
485 .with_dialect(dialect)
486 .build()?
487 .parse_into_expr()
488 }
489
490 /// Parse a sql string into one or [`Statement`]s
491 pub fn parse_statements(&mut self) -> Result<VecDeque<Statement>, DataFusionError> {

Callers

nothing calls this directly

Calls 4

newFunction · 0.85
parse_into_exprMethod · 0.80
with_dialectMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected