Skip to content

Commit 6b61b7d

Browse files
committed
add join op test for where not exists
1 parent f83e931 commit 6b61b7d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

enginetest/join_op_tests.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1921,6 +1921,18 @@ SELECT SUM(x) FROM xy WHERE x IN (
19211921
},
19221922
},
19231923
},
1924+
{
1925+
name: "where not exists",
1926+
setup: [][]string{
1927+
setup.XyData[0],
1928+
},
1929+
tests: []JoinOpTests{
1930+
{
1931+
Query: `select * from xy_hasnull x where not exists(select 1 from ab_hasnull a where a.b = x.y)`,
1932+
Expected: []sql.Row{{1, 0}, {3, nil}},
1933+
},
1934+
},
1935+
},
19241936
{
19251937
name: "multi-column merge join",
19261938
setup: [][]string{

0 commit comments

Comments
 (0)