-
Notifications
You must be signed in to change notification settings - Fork 759
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
---- |