You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2021/08/20 12:18:00 UTC

[jira] [Resolved] (SPARK-36448) Exceptions in NoSuchItemException.scala have to be case classes to preserve specific exceptions

     [ 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org