You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/12/19 08:36:00 UTC

[GitHub] [doris] gojumprope opened a new issue, #15167: [Bug] Where clause "IN" condition return wrong result if there are too many value in the "IN" condition

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

   ### 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
   
   1.2.0
   
   ### What's Wrong?
   
   Where clause "IN" condition return wrong result if there are too many value in the "IN" condition
   
   ### What You Expected?
   
   return correct result
   
   ### How to Reproduce?
   
   CREATE TABLE `test_table` (
     `AreaId` bigint NULL COMMENT ""
   ) 
   DISTRIBUTED BY HASH (AreaId) BUCKETS 32 PROPERTIES (
     "replication_allocation" = "tag.location.default: 1"
   );
   
   INSERT INTO test_table
   VALUES(1),(12),(123),(1234),(12345),(123456),(1234567);
   
   -- 2 count
   SELECT COUNT(1)
   FROM dbo.test_table  
   where areaid in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48);
   
   -- 0 count
   SELECT COUNT(1)
   FROM dbo.test_table  
   where areaid in (55555);
   
   -- 4 count
   SELECT COUNT(1)
   FROM dbo.test_table  
   where areaid in (55555, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48);
   
   
   SELECT *
   FROM dbo.test_table  
   where areaid in (55555, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48)
   order by 1;
   
   
   AreaId|
   ------+
        1|
       12|
     1234|
    12345|
   
   
   
   
   should return areaid 1 and 12 only
   
   
   ### 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


[GitHub] [doris] gojumprope commented on issue #15167: [Bug] Where clause "IN" operator return wrong result if there are too many value in the "IN" condition

Posted by GitBox <gi...@apache.org>.
gojumprope commented on issue #15167:
URL: https://github.com/apache/doris/issues/15167#issuecomment-1370699313

   It only fixed when enable_vectorized_engine=true, the error still occurs when enable_vectorized_engine=false 


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


[GitHub] [doris] nextdreamblue commented on issue #15167: [Bug] Where clause "IN" operator return wrong result if there are too many value in the "IN" condition

Posted by GitBox <gi...@apache.org>.
nextdreamblue commented on issue #15167:
URL: https://github.com/apache/doris/issues/15167#issuecomment-1367018959

   master branch had fix this bug


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


[GitHub] [doris] gojumprope closed issue #15167: [Bug] Where clause "IN" operator return wrong result if there are too many value in the "IN" condition

Posted by "gojumprope (via GitHub)" <gi...@apache.org>.
gojumprope closed issue #15167: [Bug] Where clause "IN" operator return wrong result if there are too many value in the "IN" condition
URL: https://github.com/apache/doris/issues/15167


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