You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2018/07/17 09:29:00 UTC

[jira] [Commented] (SPARK-24829) CAST AS FLOAT inconsistent with Hive

    [ https://issues.apache.org/jira/browse/SPARK-24829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16546244#comment-16546244 ] 

Apache Spark commented on SPARK-24829:
--------------------------------------

User 'zuotingbing' has created a pull request for this issue:
https://github.com/apache/spark/pull/21789

> CAST AS FLOAT inconsistent with Hive
> ------------------------------------
>
>                 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
>            Priority: Major
>         Attachments: CAST-FLOAT.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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org