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

Method sql_with_options

datafusion/core/src/execution/context/mod.rs:642–651  ·  view source on GitHub ↗
(
        &self,
        sql: &str,
        options: SQLOptions,
    )

Source from the content-addressed store, hash-verified

640 /// ```
641 #[cfg(feature = "sql")]
642 pub async fn sql_with_options(
643 &self,
644 sql: &str,
645 options: SQLOptions,
646 ) -> Result<DataFrame> {
647 let plan = self.state().create_logical_plan(sql).await?;
648 options.verify_plan(&plan)?;
649
650 self.execute_logical_plan(plan).await
651 }
652
653 /// Creates logical expressions from SQL query text.
654 ///

Calls 4

create_logical_planMethod · 0.80
verify_planMethod · 0.80
stateMethod · 0.45
execute_logical_planMethod · 0.45