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

streaming windowing UDAF seems to be broken without Partition Spec

    XMLWordPrintableJSON

Details

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

    Description

      select  avg(c_int) over(rows between 1 PRECEDING and current row) from t1
      

      results in

      :1}}
      	at org.apache.hadoop.hive.ql.exec.mr.ExecReducer.reduce(ExecReducer.java:271)
      	... 9 more
      Caused by: java.lang.NullPointerException
      	at org.apache.hadoop.hive.ql.udf.generic.GenericUDAFAverage$GenericUDAFAverageEvaluatorDouble$1.getNextResult(GenericUDAFAverage.java:180)
      	at org.apache.hadoop.hive.ql.udf.generic.GenericUDAFAverage$GenericUDAFAverageEvaluatorDouble$1.getNextResult(GenericUDAFAverage.java:166)
      	at org.apache.hadoop.hive.ql.udf.generic.GenericUDAFStreamingEvaluator$SumAvgEnhancer.iterate(GenericUDAFStreamingEvaluator.java:166)
      	at org.apache.hadoop.hive.ql.udf.generic.GenericUDAFEvaluator.aggregate(GenericUDAFEvaluator.java:185)
      	at org.apache.hadoop.hive.ql.udf.ptf.WindowingTableFunction.processRow(WindowingTableFunction.java:348)
      	at org.apache.hadoop.hive.ql.exec.PTFOperator$PTFInvocation.processRow(PTFOperator.java:318)
      	at org.apache.hadoop.hive.ql.exec.PTFOperator.processOp(PTFOperator.java:131)
      	at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:800)
      	at org.apache.hadoop.hive.ql.exec.ExtractOperator.processOp(ExtractOperator.java:45)
      	at org.apache.hadoop.hive.ql.exec.mr.ExecReducer.reduce(ExecReducer.java:262)
      	... 9 more
      

      Attachments

        1. HIVE-7539.1.patch.txt
          2 kB
          Navis Ryu

        Issue Links

          Activity

            People

              navis Navis Ryu
              jpullokkaran Laljo John Pullokkaran
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: