dutyu opened a new issue, #20087: URL: https://github.com/apache/doris/issues/20087
### 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.2.4 ### What's Wrong? SQL: ```sql select pday, count(1) from ( SELECT `id` AS `id`, `tran_proc_rp_no` AS `tran_proc_rp_no`, ... ... .... `pday` AS `pday` FROM ( select `lcs_rp_tr_tran_proc_rp_v2`.`id`, `lcs_rp_tr_tran_proc_rp_v2`.`tran_proc_rp_no`, ... ... ... replace( `lcs_rp_tr_tran_proc_rp_v2`.`partitions`, '-', '' ) `pday` from `ods_safe`.`lcs_rp_tr_tran_proc_rp_v2` ) `prd_lcs_rp_tr_tran_proc_rp_v2` ) t where pday <> '20230418' group by 1 order by 1 desc LIMIT 1000; ``` Query result is empty but in fact it should not be empty, when i submit a query like this: ```sql select replace( `lcs_rp_tr_tran_proc_rp_v2`.`partitions`, '-', '' ) `pday`, count(1) from `ods_safe`.`lcs_rp_tr_tran_proc_rp_v2` where replace( `lcs_rp_tr_tran_proc_rp_v2`.`partitions`, '-', '' ) <> '20230418' group by 1 order by 1 desc LIMIT 1000; ``` it works fine. ### What You Expected? Result should not be empty. ### 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]
