Amanda Liu created SPARK-48740:
----------------------------------

             Summary: Catch missing window specification error early
                 Key: SPARK-48740
                 URL: https://issues.apache.org/jira/browse/SPARK-48740
             Project: Spark
          Issue Type: Task
          Components: Spark Core
    Affects Versions: 4.0.0
            Reporter: Amanda Liu


Before, aggregate queries containing a window function without a window 
specification (e.g. `PARTITION BY`) would return a non-descriptive internal 
error message: 

`org.apache.spark.sql.catalyst.analysis.UnresolvedException: [INTERNAL_ERROR] 
Invalid call to exprId on unresolved object SQLSTATE: XX000`

This PR catches the user error early and returns a more accurate description of 
the issue:

`Window specification <windowName> is not defined in the WINDOW clause.`



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to