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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0, 2.1.0, 2.2.0
    • Fix Version/s: 2.0.3, 2.1.2, 2.2.0
    • Component/s: SQL
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: