[
https://issues.apache.org/jira/browse/SPARK-24829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hyukjin Kwon resolved SPARK-24829.
----------------------------------
Resolution: Fixed
Assignee: zuotingbing
Fix Version/s: 2.4.0
Fixed in https://github.com/apache/spark/pull/21789
> In Spark Thrift Server, CAST AS FLOAT inconsistent with spark-shell or
> spark-sql
> ---------------------------------------------------------------------------------
>
> Key: SPARK-24829
> URL: https://issues.apache.org/jira/browse/SPARK-24829
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.3.1
> Reporter: zuotingbing
> Assignee: zuotingbing
> Priority: Major
> Fix For: 2.4.0
>
> Attachments: 2018-07-18_110944.png, 2018-07-18_111111.png
>
>
> SELECT CAST('4.56' AS FLOAT)
> the result is 4.559999942779541 , it should be 4.56
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]