[ 
https://issues.apache.org/jira/browse/SPARK-36448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17394975#comment-17394975
 ] 

Yesheng Ma commented on SPARK-36448:
------------------------------------

I'd raise a PR shortly.

> Exceptions in NoSuchItemException.scala have to be case classes to preserve 
> specific exceptions
> -----------------------------------------------------------------------------------------------
>
>                 Key: SPARK-36448
>                 URL: https://issues.apache.org/jira/browse/SPARK-36448
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.1.2
>            Reporter: Yesheng Ma
>            Priority: Major
>
> Exceptions in NoSuchItemException.scala are not case classes. This is causing 
> issues because in Analyzer's 
> [executeAndCheck|https://github.com/apache/spark/blob/888f8f03c89ea7ee8997171eadf64c87e17c4efe/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala#L196-L199]
>  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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to