Details
-
Task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
4.0.0
Description
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.`
Attachments
Issue Links
- links to