Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-40182 Improve ANSI runtime error messages
  3. SPARK-40183

Use error class NUMERIC_VALUE_OUT_OF_RANGE for overflow in decimal conversion

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • SQL
    • None

    Description

      Use error class NUMERIC_VALUE_OUT_OF_RANGE for overflow in decimal conversion, instead of the confusing error class `CANNOT_CHANGE_DECIMAL_PRECISION`.

      Also, use `decimal.toPlainString` instead of `decimal.toDebugString` in the error message.

      Attachments

        Activity

          People

            Gengliang.Wang Gengliang Wang
            Gengliang.Wang Gengliang Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: