()
| 539 | |
| 540 | #[test] |
| 541 | fn cross_join_empty() -> Result<()> { |
| 542 | let table_scan = test_table_scan()?; |
| 543 | let left = LogicalPlanBuilder::from(table_scan).build()?; |
| 544 | let right = LogicalPlanBuilder::empty(false).build()?; |
| 545 | |
| 546 | let plan = LogicalPlanBuilder::from(left) |
| 547 | .cross_join(right)? |
| 548 | .filter(col("a").lt_eq(lit(1i64)))? |
| 549 | .build()?; |
| 550 | |
| 551 | let expected = "EmptyRelation: rows=0"; |
| 552 | assert_together_optimized_plan(plan, expected, true) |
| 553 | } |
| 554 | |
| 555 | fn assert_empty_left_empty_right_lp( |
| 556 | left_empty: bool, |
nothing calls this directly
no test coverage detected
searching dependent graphs…