@@ -13472,24 +13472,38 @@ select * from t1 except (
1347213472 },
1347313473 },
1347413474 {
13475- // https://github.com/dolthub/dolt/issues/10070
13476- // https://github.com/dolthub/dolt/issues/10092
1347713475 Name : "NOT EXISTS with nullable filter" ,
1347813476 SetUpScript : []string {
1347913477 "CREATE TABLE t0(c0 INT , c1 INT);" ,
1348013478 "INSERT INTO t0(c0, c1) VALUES (1, -2);" ,
1348113479 "create table t1(c0 int, primary key(c0))" ,
1348213480 "insert into t1 values (1)" ,
13481+ "create table t2(c0 varchar(500), primary key(c0))" ,
13482+ "insert into t2 values ('9')" ,
13483+ "create table t3(c0 boolean, primary key(c0))" ,
13484+ "insert into t3 values(false)" ,
1348313485 },
1348413486 Assertions : []ScriptTestAssertion {
1348513487 {
13488+ // https://github.com/dolthub/dolt/issues/10070
1348613489 Query : `SELECT * FROM t0 WHERE NOT EXISTS (SELECT 1 FROM (SELECT 1) alias0 WHERE (CASE -1 WHEN t0.c1 THEN false END));` ,
1348713490 Expected : []sql.Row {{1 , - 2 }},
1348813491 },
1348913492 {
13493+ // https://github.com/dolthub/dolt/issues/10092
1349013494 Query : "select * from t1 where not exists (select 1 from (select 1) as subquery where weekday(t1.c0))" ,
1349113495 Expected : []sql.Row {{1 }},
1349213496 },
13497+ {
13498+ // https://github.com/dolthub/dolt/issues/10102
13499+ Query : "SELECT * FROM t2 WHERE NOT EXISTS (SELECT 1 FROM (SELECT 1) AS sub0 WHERE ASIN(t2.c0));" ,
13500+ Expected : []sql.Row {{"9" }},
13501+ },
13502+ {
13503+ // https://github.com/dolthub/dolt/issues/10157
13504+ Query : "SELECT * FROM t3 WHERE NOT EXISTS (SELECT 1 FROM (SELECT 1) AS sub0 WHERE LOG2(t3.c0));" ,
13505+ Expected : []sql.Row {{0 }},
13506+ },
1349313507 },
1349413508 },
1349513509}
0 commit comments