Andrew Murphy created SPARK-38296:
-------------------------------------

             Summary: 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


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

Reply via email to