turboFei edited a comment 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-581741396
 
 
   Yes, Here is a test failure.
   
![image](https://user-images.githubusercontent.com/6757692/73714637-6ec96380-474c-11ea-8a03-32feb6a279dc.png)
   
   ```
   scala> 2147483647f.toDouble <= 2147483647.toFloat.toDouble
   res5: Boolean = true
   
   scala> 2147483647f.toDouble <= 2147483647.toDouble
   res6: Boolean = false
   ```
   

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