You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2022/02/24 00:24:00 UTC
[jira] [Commented] (SPARK-38296) Error Classes AnalysisException is not propagated in FunctionRegistry
[ https://issues.apache.org/jira/browse/SPARK-38296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17497083#comment-17497083 ]
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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org