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

ceil/ceiling/floor/power returns incorrect values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • 3.0.0
    • None
    • SQL
    • None

    Description

      spark-sql> select ceil(double(1.2345678901234e+200)), ceiling(double(1.2345678901234e+200)), floor(double(1.2345678901234e+200)), power('1', 'NaN');
      9223372036854775807	9223372036854775807	9223372036854775807	NaN
      
      postgres=# select ceil(1.2345678901234e+200::float8), ceiling(1.2345678901234e+200::float8), floor(1.2345678901234e+200::float8), power('1', 'NaN');
               ceil         |       ceiling        |        floor         | power
      ----------------------+----------------------+----------------------+-------
       1.2345678901234e+200 | 1.2345678901234e+200 | 1.2345678901234e+200 |     1
      (1 row)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yumwang Yuming Wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: