0xqq opened a new issue, #23747:
URL: https://github.com/apache/doris/issues/23747

   ### 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
   
   DORIS2.0.1
   
   ### What's Wrong?
   
   DROP TABLE IF EXISTS count_by_enum_test;
   
   CREATE TABLE count_by_enum_test(
                   `id` varchar(1024) NULL,
                   `f1` text REPLACE_IF_NOT_NULL NULL,
                   `f2` text REPLACE_IF_NOT_NULL NULL,
                   `f3` text REPLACE_IF_NOT_NULL NULL
                   )
   AGGREGATE KEY(`id`)
   DISTRIBUTED BY HASH(id) BUCKETS 3 
   PROPERTIES ( 
       "replication_num" = "1"
   ); 
   
   INSERT into count_by_enum_test (id, f1, f2, f3) values
                                           (1, "F", "10", "北京"),
                                           (2, "F", "20", "北京"),
                                           (3, "M", NULL, "上海"),
                                           (4, "M", NULL, "上海"),
                                           (5, "M", NULL, "广州");
   
   SELECT * from count_by_enum_test;
   
   +------+------+------+--------+
   | id   | f1   | f2   | f3     |
   +------+------+------+--------+
   | 2    | F    | 20   | 北京   |
   | 3    | M    | NULL | 上海   |
   | 4    | M    | NULL | 上海   |
   | 5    | M    | NULL | 广州   |
   | 1    | F    | 10   | 北京   |
   +------+------+------+--------+
   
   select count_by_enum(f1) from count_by_enum_test;
   
   
   SQL 错误 [1105] [HY000]: errCode = 2, detailMessage = No matching function 
with signature: count_by_enum(text).
   
   ### What You Expected?
   
   COUNT_ BY_ ENUM function   supported 
   
   ### 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-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