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

   ### What changes were proposed in this pull request?
   In the PR, I propose to enforce creation of `AnalysisException` sub-class 
exceptions with an error class always. In particular, it converts the 
constructor with a message to private one, so, callers have to create a 
sub-class of `AnalysisException` with an error class.
   
   ### Why are the changes needed?
   This simplifies migration on error classes.
   
   ### Does this PR introduce _any_ user-facing change?
   No since user code doesn't throw `AnalysisException` and its sub-classes in 
regular cases.
   
   ### How was this patch tested?
   By existing test suites, for instance:
   ```
   $ build/sbt "sql/testOnly *QueryParsingErrorsSuite"
   ```
   
   ### Was this patch authored or co-authored using generative AI tooling?
   No.


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