Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-24829

In Spark Thrift Server, CAST AS FLOAT inconsistent with spark-shell or spark-sql

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.1
    • 2.4.0
    • SQL
    • None

    Description

      SELECT CAST('4.56' AS FLOAT)

      the result is 4.559999942779541 , it should be 4.56

      Attachments

        1. 2018-07-18_111111.png
          8 kB
          zuotingbing
        2. 2018-07-18_110944.png
          10 kB
          zuotingbing

        Issue Links

          Activity

            People

              zuo.tingbing9 zuotingbing
              zuo.tingbing9 zuotingbing
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: