[
https://issues.apache.org/jira/browse/SPARK-38296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17497084#comment-17497084
]
Apache Spark commented on SPARK-38296:
--------------------------------------
User 'andrewfmurphy' has created a pull request for this issue:
https://github.com/apache/spark/pull/35638
> Error Classes AnalysisException is not propagated in FunctionRegistry
> ---------------------------------------------------------------------
>
> Key: SPARK-38296
> URL: https://issues.apache.org/jira/browse/SPARK-38296
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 3.3.0
> Reporter: Andrew Murphy
> Priority: Major
>
> While trying to migrate invalidLiteralForWindowDurationError to use Error
> Classes (SPARK-38110), I realized that the error class is not propagating
> correctly. This is because the AnalysisException is caught and rethrown at
> [FunctionRegistry:154|https://github.com/apache/spark/blob/43e93b581ea5f7a1ba6cf943e6624f6847ebc3a8/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/FunctionRegistry.scala#L154]
> without a case for Error Classes. I will attach a fix for this specific
> error here to avoid bundling too many changes into one PR for SPARK-38110. I
> anticipate that similar changes will need to be made where AnalysisException
> is rethrown as the migration continues.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]