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

Function select_exprs

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

Source from the content-addressed store, hash-verified

355
356#[tokio::test]
357async fn select_exprs() -> Result<()> {
358 // build plan using `select_expr``
359 let t = test_table().await?;
360 let plan = t
361 .clone()
362 .select_exprs(&["c1", "c2", "c11", "c2 * c11"])?
363 .logical_plan()
364 .clone();
365
366 // build plan using select
367 let expected_plan = t
368 .select(vec![
369 col("c1"),
370 col("c2"),
371 col("c11"),
372 col("c2") * col("c11"),
373 ])?
374 .logical_plan()
375 .clone();
376
377 assert_same_plan(&expected_plan, &plan);
378
379 Ok(())
380}
381
382#[tokio::test]
383async fn select_with_window_exprs() -> Result<()> {

Callers

nothing calls this directly

Calls 6

test_tableFunction · 0.85
assert_same_planFunction · 0.85
select_exprsMethod · 0.80
cloneMethod · 0.45
logical_planMethod · 0.45
selectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…