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

Window function max NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.3.0, 2.0.0
    • None
    • None
    • Reviewed

    Description

      This query

      select key, max(value) over (order by key rows between 10 preceding and 20 following) from src1 where length(key) > 10;
      

      fails with NPE:

      Caused by: java.lang.NullPointerException
              at org.apache.hadoop.hive.ql.udf.generic.GenericUDAFMax$MaxStreamingFixedWindow.terminate(GenericUDAFMax.java:290) 
              at org.apache.hadoop.hive.ql.udf.ptf.WindowingTableFunction.finishPartition(WindowingTableFunction.java:477) 
              at org.apache.hadoop.hive.ql.exec.PTFOperator$PTFInvocation.finishPartition(PTFOperator.java:337) 
              at org.apache.hadoop.hive.ql.exec.PTFOperator.closeOp(PTFOperator.java:95)
              at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:617)
              at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:631)
              at org.apache.hadoop.hive.ql.exec.mr.ExecReducer.close(ExecReducer.java:278)
      

      Attachments

        1. HIVE-11817.1.patch
          3 kB
          Jimmy Xiang

        Activity

          People

            jxiang Jimmy Xiang
            jxiang Jimmy Xiang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: