turboFei edited a comment on issue #27151: [SPARK-26218][Follow up] Fix the 
corner case when casting float to Integer.
URL: https://github.com/apache/spark/pull/27151#issuecomment-572629367
 
 
   > Is this code path only used for ANSI mode? and is that defined by ANSI? I 
wouldn't expect the result of the cast to retain that much accuracy. You're not 
in general going to get the same int out when the int is large, after the 
round-trip - right?
   
   Yes, it would be only invoked for ANSI mode.
   Ansi would throw exception when overflow.
   I have attached the relative behaviors of pgsql and teradata above.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to