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

Fix UnsafeRow set overflowed decimal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.6, 2.4.7, 3.0.0, 3.0.1
    • 3.1.0
    • SQL
    • None

    Description

      There is a bug that writing an overflowed decimal into UnsafeRow is fine but reading it out will throw ArithmeticException. This exception is thrown when calling getDecimal in UnsafeRow with input decimal's precision greater than the input precision. Setting the value of the overflowed decimal to null when writing into UnsafeRow should fix this issue.

      Attachments

        Activity

          People

            cloud_fan Wenchen Fan
            allisonwang-db Allison Wang
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: