()
| 533 | |
| 534 | #[tokio::test] |
| 535 | async 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] |
| 555 | async fn drop_columns_qualified() -> Result<()> { |
nothing calls this directly
no test coverage detected
searching dependent graphs…