You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "dzcxzl (JIRA)" <ji...@apache.org> on 2018/10/11 08:23:00 UTC

[jira] [Resolved] (SPARK-24317) Float-point numbers are displayed with different precision in ThriftServer2

     [ https://issues.apache.org/jira/browse/SPARK-24317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

dzcxzl resolved SPARK-24317.
----------------------------
    Resolution: Duplicate

> Float-point numbers are displayed with different precision in ThriftServer2
> ---------------------------------------------------------------------------
>
>                 Key: SPARK-24317
>                 URL: https://issues.apache.org/jira/browse/SPARK-24317
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.0.0, 2.1.0, 2.2.0, 2.3.0
>            Reporter: dzcxzl
>            Priority: Minor
>
> When querying float-point numbers , the values displayed on beeline or jdbc are with different precision.
> {code:java}
> SELECT CAST(1.23 AS FLOAT)
> Result:
> 1.2300000190734863
> {code}
> According to these two jira:
> [HIVE-11802|https://issues.apache.org/jira/browse/HIVE-11802]
> [HIVE-11832|https://issues.apache.org/jira/browse/HIVE-11832]
> Make a slight modification to the spark hive thrift server.



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