You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Andrew Murphy (Jira)" <ji...@apache.org> on 2022/02/23 03:45:00 UTC
[jira] [Updated] (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:all-tabpanel ]
Andrew Murphy updated SPARK-38296:
----------------------------------
External issue ID: (was: SPARK-38110)
External issue URL: (was: https://issues.apache.org/jira/browse/SPARK-38110)
> 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. 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