EmmyMiao87 opened a new issue #7102: URL: https://github.com/apache/incubator-doris/issues/7102
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and found no similar issues. ### Description Doris 在语义解析的时候,如果发现 Expr 中参数类型无法直接计算,就会增加 cast 逻辑。比如表结构 (k1 int, k2 bigint),对于 Expr k1=k2 。原始表达式的类型为 k1(int) = k2(bigint) ,直接无法计算,所以需要通过 cast 表达式将 Expr 左孩子类型转成 bigint。则表达式变换成 cast(k1 as bigint) = k2。 ### Use case 在语义解析判断参类型是否兼容的时候,有些类型会增加无用的 cast。 比如 k1(date) = k2(date) 也会转化为 cast(k1 as datetime) = cast(k2 as datetime)。 ### Related issues _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 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