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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to