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

Spark-sql, "Bround" and "Round" function return NULL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0, 2.1.0, 2.2.0
    • 2.0.3, 2.1.2, 2.2.0
    • SQL
    • None

    Description

      >select bround(12.3, 2);
      >NULL
      For this case, the expected result is 12.3, but it is null

      "Round" has the same problem:
      >select round(12.3, 2);
      >NULL

      Attachments

        Activity

          People

            10110346 liuxian
            10110346 liuxian
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: