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

   ### 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
   
   v1.1.1
   
   ### What's Wrong?
   
   `mysql> explain
       -> select intersect_count(bitmap, country, '中国')
       -> from table
       -> where dt = '2022-08-01';
   ERROR 1105 (HY000): errCode = 2, detailMessage = No matching function with 
signature: intersect_count(bitmap, varchar(256), varchar(-1)).
   `
   
   ### What You Expected?
   
   正常执行完成。
   
   ### How to Reproduce?
   
   `
   create table if not exists x
   (
       uk              varchar(50) comment '日期分区',
       country         varchar(256) comment '',
       province        varchar(256) comment '',
       dt              date comment '日期分区',
       `bm_original_id` bitmap BITMAP_UNION NULL COMMENT ""
   ) ENGINE=OLAP
   AGGREGATE KEY(`uk`, `country`, `province`, `dt`)
   COMMENT "OLAP"
   PARTITION BY RANGE(`dt`)()
   DISTRIBUTED BY HASH(`province`) BUCKETS 5
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 1",
   "dynamic_partition.enable" = "true",
   "dynamic_partition.time_unit" = "DAY",
   "dynamic_partition.time_zone" = "Asia/Shanghai",
   "dynamic_partition.start" = "-2147483648",
   "dynamic_partition.end" = "3",
   "dynamic_partition.prefix" = "p",
   "dynamic_partition.replication_allocation" = "tag.location.default: 1",
   "dynamic_partition.buckets" = "3",
   "dynamic_partition.create_history_partition" = "true",
   "dynamic_partition.history_partition_num" = "10",
   "dynamic_partition.hot_partition_num" = "0",
   "dynamic_partition.reserved_history_periods" = "NULL",
   "in_memory" = "false",
   "storage_format" = "V2"
   );
   
   explain
   select intersect_count(bm_original_id, country, '中国')
   from x
   where dt = '2022-08-01'
   `
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to