jayzhan211 commented on PR #14812:
URL: https://github.com/apache/datafusion/pull/14812#issuecomment-2678065061
@zjregee How about wrapping with Expr::Cast?
The logic should be something similar to this
```rust
let data_type_a = complex_expr.get_data_type();
let data_type_b = complex_expr.get_data_type();
if data_type_a != data_type_a {
target type = determine_common_type()
Expr::Cast(complex_expr, target type)
}
```
--
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]