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

AnalysisException not tolerant of null query plan

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.1.2, 2.2.0
    • Component/s: SQL
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: