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

Function table

datafusion/optimizer/benches/optimize_projections.rs:36–44  ·  view source on GitHub ↗
(name: &str, cols: usize)

Source from the content-addressed store, hash-verified

34use datafusion_optimizer::{OptimizerContext, OptimizerRule};
35
36fn table(name: &str, cols: usize) -> LogicalPlan {
37 let fields: Vec<Field> = (0..cols)
38 .map(|i| Field::new(format!("c{i}"), DataType::Int32, true))
39 .collect();
40 table_scan(Some(name), &Schema::new(fields), None)
41 .unwrap()
42 .build()
43 .unwrap()
44}
45
46fn scan_with_filter(name: &str, cols: usize, filter_col: usize) -> LogicalPlan {
47 LogicalPlanBuilder::from(table(name, cols))

Callers 5

scan_with_filterFunction · 0.85
plan_tpch_q5Function · 0.85
plan_clickbench_groupbyFunction · 0.85
plan_tpcds_subqueryFunction · 0.85
plan_small_schemaFunction · 0.85

Calls 5

newFunction · 0.85
table_scanFunction · 0.85
collectMethod · 0.80
mapMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…