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

Function physical_plan

datafusion/core/benches/sql_planner.rs:50–59  ·  view source on GitHub ↗

Create a physical ExecutionPlan (by way of logical plan)

(ctx: &SessionContext, rt: &Runtime, sql: &str)

Source from the content-addressed store, hash-verified

48
49/// Create a physical ExecutionPlan (by way of logical plan)
50fn physical_plan(ctx: &SessionContext, rt: &Runtime, sql: &str) {
51 black_box(rt.block_on(async {
52 ctx.sql(sql)
53 .await
54 .unwrap()
55 .create_physical_plan()
56 .await
57 .unwrap()
58 }));
59}
60
61/// Create schema with the specified number of columns
62fn create_schema(column_prefix: &str, num_columns: usize) -> Schema {

Callers 1

criterion_benchmarkFunction · 0.70

Calls 2

sqlMethod · 0.80
create_physical_planMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…