neilconway opened a new issue, #21205:
URL: https://github.com/apache/datafusion/issues/21205

   ### Describe the bug
   
   ```sql
     CREATE TABLE t1(id INTEGER) AS VALUES (1), (2), (3);
     CREATE TABLE t2(id INTEGER) AS VALUES (1), (2), (3);
   
     -- Expected: 0 rows (no value can satisfy id = id AND id > id)
     -- Actual (before fix): returns all 3 rows
     SELECT * FROM t1 WHERE t1.id IN (
         SELECT t2.id FROM t2 WHERE t2.id > t1.id
     );
   ```
   
   ### To Reproduce
   
   _No response_
   
   ### Expected behavior
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to