Yukang-Lian opened a new issue, #24040: URL: https://github.com/apache/doris/issues/24040
### 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 master ### What's Wrong? The table creation statement is as follows ```sql CREATE TABLE `test_flink_tbl_1` ( `k1` date NOT NULL COMMENT '数据时间-天', `k2` varchar(65533) NOT NULL, `k3` varchar(65533) NOT NULL) ENGINE=OLAP UNIQUE KEY(`k1`, `k2`) COMMENT 'OLAP' PARTITION BY RANGE(`k1`)() DISTRIBUTED BY HASH(`k1`) BUCKETS 32 PROPERTIES ( "replication_allocation" = "tag.location.default: 1", "is_being_synced" = "false", "dynamic_partition.enable" = "true", "dynamic_partition.time_unit" = "DAY", "dynamic_partition.time_zone" = "Asia/Shanghai", "dynamic_partition.start" = "-365", "dynamic_partition.end" = "2", "dynamic_partition.prefix" = "p", "dynamic_partition.replication_allocation" = "tag.location.default: 1", "dynamic_partition.buckets" = "32", "dynamic_partition.create_history_partition" = "true", "dynamic_partition.history_partition_num" = "-1", "dynamic_partition.hot_partition_num" = "0", "dynamic_partition.reserved_history_periods" = "NULL", "dynamic_partition.storage_policy" = "", "dynamic_partition.storage_medium" = "HDD", "storage_format" = "V2", "enable_unique_key_merge_on_write" = "true", "light_schema_change" = "true", "disable_auto_compaction" = "false", "enable_single_replica_compaction" = "false" ); ``` we can see from statement below that there is only one line data k1=2023-03-21 and k2= '0d889c7ba11447d39f7b7d5118632b77'. ```sql mysql> select k1 from test_flink_tbl_1 where k2 = '0d889c7ba11447d39f7b7d5118632b77'; +------------+ | k1 | +------------+ | 2023-03-21 | +------------+ 1 row in set (0.55 sec) ``` When i do query without quote, the result is wrong, the result should be 0. ``` mysql> select count(*) from test_flink_tbl_1 where k1 = 2022-11-20 and k2 = '0d889c7ba11447d39f7b7d5118632b77'; +----------+ | count(*) | +----------+ | 1 | +----------+ 1 row in set (0.56 sec) ``` When i do query with quote, the result is right. ```sql mysql> select count(*) from test_flink_tbl_1 where k1 = '2022-11-20' and k2 = '0d889c7ba11447d39f7b7d5118632b77'; +----------+ | count(*) | +----------+ | 0 | +----------+ 1 row in set (0.02 sec) ``` ### What You Expected? right result. ### 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]
