GitHub user cxzl25 opened a pull request:

    https://github.com/apache/spark/pull/21364

    [SPARK-20173][SQL]Float-point numbers are displayed with different 
precision in ThriftServer2

    ## What changes were proposed in this pull request?
    When querying float-point numbers , the values displayed on beeline or jdbc 
are with different precision.
    ```
    SELECT CAST(1.23 AS FLOAT)
    Result:
    1.2300000190734863
    ```
    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.
    
    ## How was this patch tested?
    HiveThriftBinaryServerSuite
    test("JDBC query float-point number")


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cxzl25/spark fix_float_number_display

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/21364.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #21364
    
----
commit 137abed62a75ea453a0d3c8436d9aa08b9abee36
Author: sychen <sychen@...>
Date:   2018-05-18T15:39:35Z

    Float-point numbers are displayed with different precision in Beeline/JDBC

----


---

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

Reply via email to