luozenglin commented on issue #16505:
URL: https://github.com/apache/doris/issues/16505#issuecomment-1425256291

   This problem is caused by the constant conjunctions evaluating the empty 
result set incorrectly:
   ```
   mysql> select * from (select k1, -1 as c from test_query_db.test) t where 
t.c = 1;
   +------+------+
   | k1   | c    |
   +------+------+
   |    3 |   -1 |
   |    1 |   -1 |
   |    2 |   -1 |
   +------+------+
   ```
   
   Expected:
   ```
   mysql> select * from (select k1, -1 as c from test_query_db.test) t where 
t.c = 1;
   Empty set (0.04 sec)
   ```


-- 
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