Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-37935 Migrate onto error classes
  3. SPARK-38986

Prepend error class tag to error messages

    XMLWordPrintableJSON

Details

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

    Description

      Prepend error messages by error class tags by extending the following method in SparkThrowableHelper:

        def getMessage(errorClass: String, messageParameters: Array[String]): String = {
          val errorInfo = errorClassToInfoMap.getOrElse(errorClass,
            throw new IllegalArgumentException(s"Cannot find error class '$errorClass'"))
          String.format(errorInfo.messageFormat.replaceAll("<[a-zA-Z0-9_-]+>", "%s"),
            messageParameters: _*)
        }
      

      Attachments

        Activity

          People

            maxgekk Max Gekk
            maxgekk Max Gekk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: