jonahgao commented on code in PR #11738: URL: https://github.com/apache/datafusion/pull/11738#discussion_r1698064911
########## datafusion/sqllogictest/test_files/join.slt: ########## @@ -1108,4 +1108,26 @@ statement ok DROP TABLE t0; statement ok -DROP TABLE t1; \ No newline at end of file +DROP TABLE t1; + +# Test SQLancer issue: https://github.com/apache/datafusion/issues/11704 +query II +WITH + t1 AS (SELECT NULL::int AS a), + t2 AS (SELECT NULL::int AS a) +SELECT * FROM + (SELECT * FROM t1 CROSS JOIN t2) +WHERE t1.a == t2.a + AND t1.a + t2.a IS NULL; Review Comment: The result of this query on the main branch is incorrect. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org