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 2023/01/06 06:14:34 UTC

[GitHub] [doris] 413331861 opened a new issue, #15675: [Bug] UNIQUE KEY 模型,根据唯一key查询结果不唯一

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

   ### 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?
   
   建表信息如下:
   create table xxx (.....)
   UNIQUE KEY(`account_id`)
   COMMENT 'OLAP'
   DISTRIBUTED BY HASH(`account_id`) BUCKETS 1
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 5",
   "in_memory" = "true",
   "storage_format" = "V2",
   "enable_unique_key_merge_on_write" = "true",
   "disable_auto_compaction" = "false"
   );
   
   根据key查询结果如下:
   MySQL [tmp]> select count(1),count(distinct account_id) from xxx ;
   +----------+------------------------------+
   | count(1) | count(DISTINCT `account_id`) |
   +----------+------------------------------+
   |  5441977 |                      5203241 |
   +----------+------------------------------+
   1 row in set (0.49 sec)
   
   MySQL [tmp]> select account_id,count(1) cnt  from xxx group by account_id having cnt > 1 limit 10;
   +---------------------+------+
   | account_id          | cnt  |
   +---------------------+------+
   | 1521310411738078519 |    2 |
   | 1521310422026706202 |    2 |
   | 1521310437558213893 |    2 |
   | 1521310445032463735 |    2 |
   | 1521310445946821889 |    2 |
   | 1521310447788121403 |    2 |
   | 1521310479111183664 |    2 |
   | 1521310483565534521 |    2 |
   | 1521310486451215735 |    2 |
   | 1521310494445559157 |    2 |
   +---------------------+------+
   10 rows in set (0.40 sec)
   
   
   ### What You Expected?
   
   使用的1.2.0版本,有routine load 任务,配置了merge_on_write 模式
   
   ### 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


[GitHub] [doris] yuxuan-luo commented on issue #15675: [Bug] UNIQUE KEY 模型,根据唯一key查询结果不唯一

Posted by "yuxuan-luo (via GitHub)" <gi...@apache.org>.
yuxuan-luo commented on issue #15675:
URL: https://github.com/apache/doris/issues/15675#issuecomment-1516658409

   1.2.2 met the same situation


-- 
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 #15675: [Bug] UNIQUE KEY 模型,根据唯一key查询结果不唯一

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

   https://github.com/apache/doris/pull/14995
   https://github.com/apache/doris/pull/15018
   
   these pr maybe 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