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

Function drop_columns_with_empty_array

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

Source from the content-addressed store, hash-verified

533
534#[tokio::test]
535async fn drop_columns_with_empty_array() -> Result<()> {
536 // build plan using Table API
537 let t = test_table().await?;
538 let drop_columns = vec![] as Vec<&str>;
539 let t2 = t.drop_columns(&drop_columns)?;
540 let plan = t2.logical_plan().clone();
541
542 // build query using SQL
543 let sql_plan = create_plan(
544 "SELECT c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13 FROM aggregate_test_100",
545 )
546 .await?;
547
548 // the two plans should be identical
549 assert_same_plan(&plan, &sql_plan);
550
551 Ok(())
552}
553
554#[tokio::test]
555async fn drop_columns_qualified() -> Result<()> {

Callers

nothing calls this directly

Calls 6

test_tableFunction · 0.85
assert_same_planFunction · 0.85
drop_columnsMethod · 0.80
create_planFunction · 0.70
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…