ChaseHuangxu opened a new issue, #19611:
URL: https://github.com/apache/doris/issues/19611

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   Apache Doris 1.2.2 RELEASE
   
   ### What's Wrong?
   
   I'm trying to add Apache Doris support to SQLancer, this may be a logic bug 
found by @[SQLancer](https://github.com/sqlancer/sqlancer).
   
   As shown below: 
       t0 and t1 are two tables, they both have only the column c0,
       An error occurred while executing the SQL statement `select * from 
(select * from t0, t1 where t1.c0 != 0 union select * from to, t1 where t1.c0 = 
0) tmp;`
   
![image](https://github.com/apache/doris/assets/91189188/94f77e79-8d38-4e99-8fbc-f16e2d2e466f)
   
   
   ### What You Expected?
   
   The SQL `select * from (select * from t0, t1 where t1.c0 != 0 union select * 
from to, t1 where t1.c0 = 0) tmp;` should execute normal and return correct 
results.
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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