Skip to content

Commit

Permalink
add some sqllogictest
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLi-cn committed Nov 5, 2024
1 parent 3bb49de commit fdc9f59
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions datafusion/sqllogictest/test_files/joins.slt
Original file line number Diff line number Diff line change
Expand Up @@ -4314,3 +4314,24 @@ physical_plan
05)--------FilterExec: abs(c2@1) <= 2
06)----------MemoryExec: partitions=1, partition_sizes=[1]
07)------MemoryExec: partitions=1, partition_sizes=[1]

statement ok
set datafusion.explain.logical_plan_only = true;

query TT
EXPLAIN SELECT * FROM t0 LEFT JOIN t1 ON t0.c1 = t1.c1 WHERE t1.c2 <= 2;
----
logical_plan
01)Inner Join: t0.c1 = t1.c1
02)--TableScan: t0 projection=[c1, c2]
03)--Filter: t1.c2 <= UInt32(2)
04)----TableScan: t1 projection=[c1, c2, c3]

query TT
EXPLAIN SELECT * FROM t0 LEFT JOIN t1 ON t0.c1 = t1.c1 WHERE t1.c2 <= cast(2 AS INT UNSIGNED);
----
logical_plan
01)Inner Join: t0.c1 = t1.c1
02)--TableScan: t0 projection=[c1, c2]
03)--Filter: t1.c2 <= UInt32(2)
04)----TableScan: t1 projection=[c1, c2, c3]

0 comments on commit fdc9f59

Please sign in to comment.