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

   ### What changes were proposed in this pull request?
   In the PR, I propose to catch asserts/illegal state exception on each phase 
of query execution: ANALYSIS, OPTIMIZATION, PLANNING, and convert them to a 
SparkException w/ the `INTERNAL_ERROR` error class.
   
   This is a backport of https://github.com/apache/spark/pull/36704.
   
   ### Why are the changes needed?
   To improve user experience with Spark SQL and unify representation of 
user-facing errors.
   
   ### Does this PR introduce _any_ user-facing change?
   No. The changes might affect users in corner cases only.
   
   ### How was this patch tested?
   By running the affected test suites:
   ```
   $ build/sbt "test:testOnly *KafkaMicroBatchV1SourceSuite"
   $ build/sbt "test:testOnly *KafkaMicroBatchV2SourceSuite"
   ```
   
   Authored-by: Max Gekk <[email protected]>
   Signed-off-by: Max Gekk <[email protected]>
   (cherry picked from commit 8894e785edae42a642351ad91e539324c39da8e4)
   Signed-off-by: Max Gekk <[email protected]>


-- 
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