cloud-fan commented on issue #27151: [SPARK-26218][SQL][Follow up] Fix the corner case when casting float to Integer. URL: https://github.com/apache/spark/pull/27151#issuecomment-573389447 We are talking about SQL semantic not IEEE floating number definition. For pgsql ``` cloud0fan=# SELECT CAST(CAST(2147483648 as FLOAT) as Int); ERROR: integer out of range ``` I think the fix makes sense.
---------------------------------------------------------------- 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]
