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

Function plan_builder_simple

datafusion/expr/src/logical_plan/builder.rs:2306–2320  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2304
2305 #[test]
2306 fn plan_builder_simple() -> Result<()> {
2307 let plan =
2308 table_scan(Some("employee_csv"), &employee_schema(), Some(vec![0, 3]))?
2309 .filter(col("state").eq(lit("CO")))?
2310 .project(vec![col("id")])?
2311 .build()?;
2312
2313 assert_snapshot!(plan, @r#"
2314 Projection: employee_csv.id
2315 Filter: employee_csv.state = Utf8("CO")
2316 TableScan: employee_csv projection=[id, state]
2317 "#);
2318
2319 Ok(())
2320 }
2321
2322 #[test]
2323 fn plan_builder_schema() {

Callers

nothing calls this directly

Calls 8

table_scanFunction · 0.85
employee_schemaFunction · 0.70
colFunction · 0.50
litFunction · 0.50
buildMethod · 0.45
projectMethod · 0.45
filterMethod · 0.45
eqMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…