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

AnalysisException not tolerant of null query plan

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.1.2, 2.2.0
    • SQL
    • None

    Description

      The query plan in an AnalysisException may be null when an AnalysisException object is serialized and then deserialized, since plan is marked @transient. Or when someone throws an AnalysisException with a null query plan (which should not happen).
      def getMessage is not tolerant of this and throws a NullPointerException, leading to loss of information about the original exception.
      The fix is to add a null check in getMessage.

      Attachments

        Activity

          People

            kunalkhamar Kunal Khamar
            kunalkhamar Kunal Khamar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: