Cherry-Puppy opened a new issue, #16259: URL: https://github.com/apache/doris/issues/16259
### 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.1.5和1.2.1-rc01 ### What's Wrong? cast函数作谓词下推的时候,date类型会在后面补全 00:00:00。 查询sql如下: select * from test_table orapd where cast(ac_time as date) = '2023-01-29' 建表语句: CREATE TABLE `test_table` ( `id` int(11) NULL COMMENT "唯一标识", `ac_time` datetime NOT NULL COMMENT "采集时间", ) ENGINE=OLAP UNIQUE KEY(`id`) COMMENT "test" DISTRIBUTED BY HASH(`id`) BUCKETS 12 PROPERTIES ( "replication_allocation" = "tag.location.default: 3", "in_memory" = "false", "storage_format" = "V2" ); explain 如下图 <img width="800" alt="image" src="https://user-images.githubusercontent.com/46736583/215454731-817f19eb-2cda-4698-b31c-21f916ade7ee.png"> ### What You Expected? 谓词下推的时候不需要补全 2023-01-29 00:00:00 ### How to Reproduce? 查询sql如下: select * from test_table orapd where cast(ac_time as date) = '2023-01-29' 建表语句: CREATE TABLE `test_table` ( `id` int(11) NULL COMMENT "唯一标识", `ac_time` datetime NOT NULL COMMENT "采集时间", ) ENGINE=OLAP UNIQUE KEY(`id`) COMMENT "test" DISTRIBUTED BY HASH(`id`) BUCKETS 12 PROPERTIES ( "replication_allocation" = "tag.location.default: 3", "in_memory" = "false", "storage_format" = "V2" ); ### Anything Else? _No response_ ### Are you willing to submit PR? - [X] 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