Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-10963

Hive throws NPE rather than meaningful error message when window is missing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0
    • 2.0.0
    • PTF-Windowing
    • None

    Description

      select sum(salary) over w1 from emp; throws NPE rather than meaningful error message like "missing window".

      And also give the right window name rather than the classname in the error message after NPE issue is fixed.

      org.apache.hadoop.hive.ql.parse.SemanticException: Window Spec org.apache.hadoop.hive.ql.parse.WindowingSpec$WindowSpec@7954e1de refers to an unknown source
      

      Attachments

        1. HIVE-10963.patch
          7 kB
          Aihua Xu

        Issue Links

          Activity

            People

              aihuaxu Aihua Xu
              aihuaxu Aihua Xu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: