alamb commented on issue #1356:
URL: 
https://github.com/apache/arrow-datafusion/issues/1356#issuecomment-978309526


   I agree that the `coercion` framework is a bit messy at the moment. It might 
help to start refactoring by collecting the coercion logic into a single module 
with some clearly defined entrypoint.
   
   Perhaps something like 
   ```rust
   pub fn coerce_to(expr: Expr, to_type: &DataType) -> Option<Expr> {
   ...
   }
   ```
   With appropriate comments and tests


-- 
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]


Reply via email to