MCPcopy Create free account
hub / github.com/apache/datafusion / cross_join_empty

Function cross_join_empty

datafusion/optimizer/src/propagate_empty_relation.rs:541–553  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 9

cross_joinMethod · 0.80
test_table_scanFunction · 0.50
emptyFunction · 0.50
colFunction · 0.50
litFunction · 0.50
buildMethod · 0.45
filterMethod · 0.45
lt_eqMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…