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

Function create_plan

datafusion/core/tests/dataframe/mod.rs:1828–1832  ·  view source on GitHub ↗

Create a logical plan from a SQL query

(sql: &str)

Source from the content-addressed store, hash-verified

1826
1827/// Create a logical plan from a SQL query
1828async fn create_plan(sql: &str) -> Result<LogicalPlan> {
1829 let ctx = SessionContext::new();
1830 register_aggregate_csv(&ctx, "aggregate_test_100").await?;
1831 Ok(ctx.sql(sql).await?.into_unoptimized_plan())
1832}
1833
1834#[tokio::test]
1835async fn with_column() -> Result<()> {

Callers 15

select_columnsFunction · 0.70
select_exprFunction · 0.70
select_allFunction · 0.70
select_with_window_exprsFunction · 0.70
drop_columnsFunction · 0.70
test_distinctFunction · 0.70
test_distinct_onFunction · 0.70
limitFunction · 0.70
explainFunction · 0.70

Calls 4

newFunction · 0.85
into_unoptimized_planMethod · 0.80
sqlMethod · 0.80
register_aggregate_csvFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…