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

Method new_with_dialect

datafusion/sql/src/parser.rs:451–456  ·  view source on GitHub ↗
(
        sql: &'a str,
        dialect: &'a dyn Dialect,
    )

Source from the content-addressed store, hash-verified

449
450 #[deprecated(since = "46.0.0", note = "DFParserBuilder")]
451 pub fn new_with_dialect(
452 sql: &'a str,
453 dialect: &'a dyn Dialect,
454 ) -> Result<Self, DataFusionError> {
455 DFParserBuilder::new(sql).with_dialect(dialect).build()
456 }
457
458 /// Parse a sql string into one or [`Statement`]s using the
459 /// [`GenericDialect`].

Callers

nothing calls this directly

Calls 3

newFunction · 0.85
with_dialectMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected