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

Method sql_statement_to_plan

datafusion/sql/src/statement.rs:241–246  ·  view source on GitHub ↗

Generate a logical plan from an SQL statement

(&self, statement: Statement)

Source from the content-addressed store, hash-verified

239
240 /// Generate a logical plan from an SQL statement
241 pub fn sql_statement_to_plan(&self, statement: Statement) -> Result<LogicalPlan> {
242 self.sql_statement_to_plan_with_context_impl(
243 statement,
244 &mut PlannerContext::new(),
245 )
246 }
247
248 /// Generate a logical plan from an SQL statement
249 pub fn sql_statement_to_plan_with_context(

Callers 14

frontendFunction · 0.80
statement_to_planMethod · 0.80
do_queryFunction · 0.80
roundtrip_statementFunction · 0.80
roundtrip_crossjoinFunction · 0.80
test_unnest_logical_planFunction · 0.80
mainFunction · 0.80

Calls 2

newFunction · 0.85

Tested by 11

do_queryFunction · 0.64
roundtrip_statementFunction · 0.64
roundtrip_crossjoinFunction · 0.64
test_unnest_logical_planFunction · 0.64
test_sqlFunction · 0.64
test_sqlFunction · 0.64