wangbo opened a new issue, #10210:
URL: https://github.com/apache/incubator-doris/issues/10210

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Version
   
   master:d51166dd2aa3ed75429b379a1ea36bc657c50b32
   
   
   ### What's Wrong?
   
   ```
   CREATE TABLE `int_test_2` (
     `siteid` int(11) NOT NULL COMMENT "",
     `citycode` int(11) NOT NULL COMMENT "",
     `userid` int(11) NOT NULL COMMENT "",
     `pv` int(11) NOT NULL COMMENT ""
   ) ENGINE=OLAP
   DUPLICATE KEY(`siteid`)
   COMMENT "OLAP"
   DISTRIBUTED BY HASH(`siteid`) BUCKETS 3
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 1",
   "in_memory" = "false",
   "storage_format" = "V2"
   )
   
   insert into int_test_2 values(1,2,3,4),(5,6,7,8);
   
   mysql> select * from int_test_2;
   +--------+----------+--------+------+
   | siteid | citycode | userid | pv   |
   +--------+----------+--------+------+
   |      1 |        2 |      3 |    4 |
   |      5 |        6 |      7 |    8 |
   +--------+----------+--------+------+
   
   mysql> select * from int_test_2 where citycode in (2,6);
   +--------+----------+--------+------+
   | siteid | citycode | userid | pv   |
   +--------+----------+--------+------+
   |      1 |        2 |      3 |    4 |
   |      5 |        6 |      7 |    8 |
   +--------+----------+--------+------+
   2 rows in set (0.01 sec)
   
   mysql> select * from int_test_2 where citycode not in (2,6);
   +--------+----------+--------+------+
   | siteid | citycode | userid | pv   |
   +--------+----------+--------+------+
   |      1 |        2 |      3 |    4 |
   |      5 |        6 |      7 |    8 |
   +--------+----------+--------+------+
   2 rows in set (0.00 sec)
   
   
   ```
   
   IN and Not IN return the same result;
   
   ### What You Expected?
   
   Fix it
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] 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-unsubscr...@doris.apache.org.apache.org

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


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

Reply via email to