Skip to content

Commit

Permalink
chore: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dousir9 committed Mar 6, 2024
1 parent 2246054 commit 09fa8c4
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions tests/sqllogictests/suites/query/join/fast_return.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Test for hash join fast return
statement ok
drop table if exists t1

statement ok
create table t1(a int, b int)

statement ok
insert into t1 values(7, 8), (3, 4), (5, 6)

statement ok
drop table if exists t2

statement ok
create table t2(a int, d int)

query I
select * from t1 inner join t2 on t1.a = t2.a order by t1.a, t2.a
----

query II
select * from t1 left join t2 on t1.a = t2.a order by t1.a, t2.a
----
3 4 NULL NULL
5 6 NULL NULL
7 8 NULL NULL

query III
select * from t2 left join t1 on t1.a = t2.a order by t1.a, t2.a
----

0 comments on commit 09fa8c4

Please sign in to comment.