You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "ChaseHuangxu (via GitHub)" <gi...@apache.org> on 2023/03/12 07:28:41 UTC

[GitHub] [doris] ChaseHuangxu opened a new issue, #17701: [Bug] Wrong result when SQL contain `where column not in (values)`

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

   ### 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).
   
   You can reproduce this error from following steps.
   
   1. CREATE TABLE and INSERT DATAS
   <img width="358" alt="image" src="https://user-images.githubusercontent.com/91189188/224530380-e0a70fdd-e522-4284-8ed8-d3d953a0b46b.png">
   
   2. `SELECT t0.c0 FROM t0 WHERE (t0.c0 NOT IN (1269-02-14));`
   Execute this query, **should return all datas from t0** becase t0.c0 not contain 1269-02-14, but in fact **return an empty set.**
   <img width="444" alt="image" src="https://user-images.githubusercontent.com/91189188/224530409-00d1ca7a-d777-42fb-ab0f-1cc10e112ae0.png">
   
   
   ### What You Expected?
   
   The query `SELECT t0.c0 FROM t0 WHERE (t0.c0 NOT IN (1269-02-14));` should return all datas like the following SQL.
   <img width="542" alt="image" src="https://user-images.githubusercontent.com/91189188/224530612-9d58d17d-5cbc-42a5-bdd0-877b212a47e8.png">
   
   
   ### 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: commits-unsubscribe@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [I] [Bug] Wrong result when SQL contain `where column not in (values)` [doris]

Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman closed issue #17701: [Bug] Wrong result when SQL contain `where column not in (values)`
URL: https://github.com/apache/doris/issues/17701


-- 
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: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org