Skip to content

Commit

Permalink
HashJoin LeftAnti Join should handle nulls correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed May 20, 2024
1 parent 5a8348f commit fe04729
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions datafusion/sqllogictest/test_files/join.slt
Original file line number Diff line number Diff line change
Expand Up @@ -793,3 +793,19 @@ DROP TABLE companies

statement ok
DROP TABLE leads


# LeftAnti Join with null
statement ok
CREATE TABLE IF NOT EXISTS test_table(c1 INT, c2 INT) AS VALUES
(1, 1),
(2, 2),
(3, 3),
(4, null),
(null, 0);

query II
SELECT * FROM test_table t1 LEFT ANTI JOIN test_table t2 ON t1.c1 = t2.c2
----
4 NULL
NULL 0

0 comments on commit fe04729

Please sign in to comment.