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

Address null from Exception.getMessage in Py4J captured exception

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      If JVM throws an exception without a message, the message becomes null and returns:

        File "/.../pyspark/errors/exceptions/captured.py", line 88, in __str__
          desc = desc + "\n\nJVM stacktrace:\n%s" % self._stackTrace
      TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            gurwls223 Hyukjin Kwon
            gurwls223 Hyukjin Kwon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment