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

   ### 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.1
   
   ### What's Wrong?
   
   <img width="990" alt="图片" 
src="https://user-images.githubusercontent.com/53937394/218403474-1f67e926-9289-4262-9031-c02732e3e2a4.png";>
   
   
   
   ### What You Expected?
   
   the value of cardinality should be 4360137/3 other than 4360137.
   
   ### How to Reproduce?
   
   with doris version 1.2.1, using explain sq
   
   the sql creating table only used buckets. 
   the following is the demo:
   
   CREATE TABLE `bill_log` (
     `org_id` bigint(20) NULL,
     `created_time` datetime NULL,
     `team_id` bigint(20) NULL,
     `agent_org_id` bigint(20) NULL,
     `id` bigint(20) NULL,
       ...
       ...
     `last_updated_time` datetime NULL,
     `__DELETE_SIGN__` varchar(10) NULL DEFAULT "false"
   ) ENGINE=OLAP
   UNIQUE KEY(`org_id`, `created_time`, `team_id`, `agent_org_id`, `id`)
   COMMENT 'OLAP'
   DISTRIBUTED BY HASH(`org_id`) BUCKETS 8
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 3",
   "bloom_filter_columns" = "parent_id, target_id",
   "in_memory" = "false",
   "storage_format" = "V2",
   "disable_auto_compaction" = "false"
   );
   
   ### 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-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