Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-33539 Standardize exception messages in Spark
  3. SPARK-34745

Unify overflow exception error message of integral types

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Later
    • 3.2.0
    • None
    • SQL
    • None

    Description

      Current, the overflow exception error messages of integral types are different.
      For Byte/Short type, the message is "... caused overflow"
      For Int/Long, the message is "int/long overflow" since Spark is calling the "*Exact"(e.g. addExact, negateExact) methods from java.lang.Math.

      We should unify the error message by changing the message of Byte/Short as "tinyint/smallint overflow"

      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: