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

Function select_expr

datafusion/core/tests/dataframe/mod.rs:331–344  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

329
330#[tokio::test]
331async fn select_expr() -> Result<()> {
332 // build plan using Table API
333 let t = test_table().await?;
334 let t2 = t.select(vec![col("c1"), col("c2"), col("c11")])?;
335 let plan = t2.logical_plan().clone();
336
337 // build query using SQL
338 let sql_plan = create_plan("SELECT c1, c2, c11 FROM aggregate_test_100").await?;
339
340 // the two plans should be identical
341 assert_same_plan(&plan, &sql_plan);
342
343 Ok(())
344}
345
346#[tokio::test]
347async fn select_all() -> Result<()> {

Callers

nothing calls this directly

Calls 6

test_tableFunction · 0.85
assert_same_planFunction · 0.85
create_planFunction · 0.70
selectMethod · 0.45
cloneMethod · 0.45
logical_planMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…