Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-48740

Catch missing window specification error early

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              asl3 Amanda Liu
              asl3 Amanda Liu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: