()
| 355 | |
| 356 | #[tokio::test] |
| 357 | async 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] |
| 383 | async fn select_with_window_exprs() -> Result<()> { |
nothing calls this directly
no test coverage detected
searching dependent graphs…