We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18a9743 commit 2fcbd4bCopy full SHA for 2fcbd4b
1 file changed
datafusion/optimizer/src/eliminate_cross_join.rs
@@ -535,6 +535,21 @@ mod tests {
535
}
536
537
#[test]
538
+ /// ```txt
539
+ /// filter: a.id = b.id and a.id = c.id
540
+ /// cross_join a (bc)
541
+ /// cross_join b c
542
+ /// ```
543
+ /// Without reorder, it will be
544
545
+ /// inner_join a (bc) on a.id = b.id and a.id = c.id
546
547
548
+ /// Reorder it to be
549
550
+ /// inner_join (ab)c and a.id = c.id
551
+ /// inner_join a b on a.id = b.id
552
553
fn reduce_cross_not_possible_simple() -> Result<()> {
554
let t1 = test_table_scan_with_name("t1")?;
555
let t2 = test_table_scan_with_name("t2")?;
0 commit comments