yeshengm opened a new pull request #33673:
URL: https://github.com/apache/spark/pull/33673


   ### What changes were proposed in this pull request?
   Change all exceptions in NoSuchItemException.scala to case classes.
   
   
   ### Why are the changes needed?
   Exceptions in NoSuchItemException.scala are not case classes. This is 
causing issues because in Analyzer's executeAndCheck method always calls the 
`copy` method on the exception. However, since these exceptions are not case 
classes, the `copy` method was always delegated to `AnalysisException::copy`, 
which is not the specialized version.
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   Existing UTs.


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