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

CheckAnalysis with UnresolvedWindowExpression nested inside other expressions produces confusing error message

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.0.0
    • SQL

    Description

      Consider the following query: `SELECT (SUM(col1) OVER(unspecified_window) / 1) FROM VALUES (1)`. Currently the resolution produces `org.apache.spark.sql.catalyst.analysis.UnresolvedException: [INTERNAL_ERROR] Invalid call to dataType on unresolved object SQLSTATE: XX000`, which is confusing. We need to change it to `ExtendedAnalysisException: [MISSING_WINDOW_SPECIFICATION]

      Attachments

        Issue Links

          Activity

            People

              vladimir.golubev Vladimir Golubev
              vladimir.golubev Vladimir Golubev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: