You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Amanda Liu (Jira)" <ji...@apache.org> on 2024/06/27 18:45:00 UTC

[jira] [Created] (SPARK-48740) Catch missing window specification error early

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