kmitchener commented on PR #2621:
URL: https://github.com/apache/arrow-rs/pull/2621#issuecomment-1255322731

   FWIW, I think this PR is correct and it would be nice to get in the next 
release. DataFusion should depend on these functions and remove it's own 
similarly-named functions. I'd be happy to do a follow-on issue for DF to clean 
that up. 
   
   In DF, these functions are only used for determining type to type coercion 
rules, but then it uses arrow-rs's cast functions to do the actual conversion 
.. shouldn't the coercion rules also be in arrow-rs which also manages the 
types, the type implementations, and the casting? There's a can_cast_types() 
which is either what we need already, or a similar function like 
can_cast_types_without_loss().
   


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