Yesheng Ma created SPARK-36448: ---------------------------------- Summary: 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
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