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

Method sql_statement_to_plan_with_context

datafusion/sql/src/statement.rs:249–255  ·  view source on GitHub ↗

Generate a logical plan from an SQL statement

(
        &self,
        statement: Statement,
        planner_context: &mut PlannerContext,
    )

Source from the content-addressed store, hash-verified

247
248 /// Generate a logical plan from an SQL statement
249 pub fn sql_statement_to_plan_with_context(
250 &self,
251 statement: Statement,
252 planner_context: &mut PlannerContext,
253 ) -> Result<LogicalPlan> {
254 self.sql_statement_to_plan_with_context_impl(statement, planner_context)
255 }
256
257 fn sql_statement_to_plan_with_context_impl(
258 &self,

Callers

nothing calls this directly

Tested by

no test coverage detected