()
| 291 | |
| 292 | #[tokio::test] |
| 293 | async fn select_columns() -> Result<()> { |
| 294 | // build plan using Table API |
| 295 | |
| 296 | let t = test_table().await?; |
| 297 | let t2 = t.select_columns(&["c1", "c2", "c11"])?; |
| 298 | let plan = t2.logical_plan().clone(); |
| 299 | |
| 300 | // build query using SQL |
| 301 | let sql_plan = create_plan("SELECT c1, c2, c11 FROM aggregate_test_100").await?; |
| 302 | |
| 303 | // the two plans should be identical |
| 304 | assert_same_plan(&plan, &sql_plan); |
| 305 | |
| 306 | Ok(()) |
| 307 | } |
| 308 | |
| 309 | #[tokio::test] |
| 310 | async fn select_columns_with_nonexistent_columns() -> Result<()> { |
nothing calls this directly
no test coverage detected
searching dependent graphs…