ueshin opened a new pull request, #39882:
URL: https://github.com/apache/spark/pull/39882

   ### What changes were proposed in this pull request?
   
   Introduces base hierarchy to exceptions.
   
   As a common hierarchy for users, base exception classes are subclasses of 
`PySparkException`.
   The concrete classes for both PySpark and Spark Connect inherits the base 
classes that should not be exposed to users.
   
   ### Why are the changes needed?
   
   Currently exception class hierarchy is separated between PySpark and Spark 
Connect.
   
   If users want to check the exception type, they need to switch the error 
classes based on whether they are running on PySpark or Spark Connect, but it's 
not ideal.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. Users still can use the existing exception classes to check the 
exception type.
   
   ### How was this patch tested?
   
   Updated tests.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to