siriume opened a new issue, #14372: URL: https://github.com/apache/doris/issues/14372
### 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 branch-1.2-lts Git : git://lts12@9de1fec6cc21aa81d744955f8cd1dca2a1148a57 ### What's Wrong? Test table like this ```sql CREATE TABLE `tb_holiday` ( `date` bigint(20) NOT NULL COMMENT '日期', `holiday` tinyint(4) NOT NULL COMMENT '节假日', `holiday_cn` varchar(9) NOT NULL COMMENT '节假日' ) ENGINE=OLAP UNIQUE KEY(`date`) COMMENT '节假日' DISTRIBUTED BY HASH(`date`) BUCKETS 4 PROPERTIES ( "replication_allocation" = "tag.location.default: 3", "in_memory" = "false", "storage_format" = "V2", "compression" = "LZ4", "disable_auto_compaction" = "false" ); ``` sql like this ```sql SELECT date_format(date, '%x%v') AS `date`, count(date) AS `diff_days` FROM jutou.`tb_my_holiday` WHERE `date` between 20221111 AND 20221116 GROUP BY date ORDER BY date; ``` result like this ``` 202245,1 202245,1 202245,1 202246,1 202246,1 202246,1 ``` ### What You Expected? result like this ```sql 202245,3 202246,3 ``` ### 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: [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]
