Skip to content

Commit 2fcbd4b

Browse files
committed
add comment
1 parent 18a9743 commit 2fcbd4b

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

datafusion/optimizer/src/eliminate_cross_join.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,21 @@ mod tests {
535535
}
536536

537537
#[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+
/// ```txt
545+
/// inner_join a (bc) on a.id = b.id and a.id = c.id
546+
/// cross_join b c
547+
/// ```
548+
/// Reorder it to be
549+
/// ```txt
550+
/// inner_join (ab)c and a.id = c.id
551+
/// inner_join a b on a.id = b.id
552+
/// ```
538553
fn reduce_cross_not_possible_simple() -> Result<()> {
539554
let t1 = test_table_scan_with_name("t1")?;
540555
let t2 = test_table_scan_with_name("t2")?;

0 commit comments

Comments
 (0)