[ 
https://issues.apache.org/jira/browse/SPARK-36448?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wenchen Fan resolved SPARK-36448.
---------------------------------
    Fix Version/s: 3.3.0
       Resolution: Fixed

Issue resolved by pull request 33673
[https://github.com/apache/spark/pull/33673]

> 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
>            Assignee: Yesheng Ma
>            Priority: Major
>             Fix For: 3.3.0
>
>
> 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