()
| 4530 | |
| 4531 | #[test] |
| 4532 | fn test_display_subquery_alias() -> Result<()> { |
| 4533 | let plan1 = table_scan(Some("employee_csv"), &employee_schema(), Some(vec![3]))? |
| 4534 | .build()?; |
| 4535 | let plan1 = Arc::new(plan1); |
| 4536 | |
| 4537 | let plan = |
| 4538 | table_scan(Some("employee_csv"), &employee_schema(), Some(vec![0, 3]))? |
| 4539 | .project(vec![col("id"), exists(plan1).alias("exists")])? |
| 4540 | .build(); |
| 4541 | |
| 4542 | assert_snapshot!(plan?.display_indent(), @r" |
| 4543 | Projection: employee_csv.id, EXISTS (<subquery>) AS exists |
| 4544 | Subquery: |
| 4545 | TableScan: employee_csv projection=[state] |
| 4546 | TableScan: employee_csv projection=[id, state] |
| 4547 | "); |
| 4548 | Ok(()) |
| 4549 | } |
| 4550 | |
| 4551 | #[test] |
| 4552 | fn test_display_graphviz() -> Result<()> { |
nothing calls this directly
no test coverage detected
searching dependent graphs…