You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/02/04 04:50:10 UTC

[GitHub] [spark] turboFei edited a comment on issue #27151: [SPARK-26218][SQL][Follow up] Fix the corner case when casting float to Integer.

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org