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

Improve the exception type and message of casting string to numbers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Minor
    • Resolution: Unresolved
    • 3.3.0
    • None
    • SQL
    • None

    Description

      1. change the exception type from "java.lang.NumberFormatException" to SparkNumberFormatException

             2. Show the exact target data type in the error message

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: