asolimando commented on issue #19090:
URL: https://github.com/apache/datafusion/issues/19090#issuecomment-3614633316

   +1 on the proposal, but I'd like to point out that `CAST` is not necessarily 
monotonic, `int -> string` would break as collation ordering goes from numeric 
to lexicographic, and also casts with the range of the "target" type is smaller 
than that of the "source" type, due to the risk of overflow, like for `float -> 
int`.
   
   I'd reformulate as "CAST when it is defined as an order-preserving, 
non-overflowing transformation on the domain" or similar.


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

Reply via email to