Jimmy Xiang created HIVE-11817:
----------------------------------

             Summary: Window function max NullPointerException
                 Key: HIVE-11817
                 URL: https://issues.apache.org/jira/browse/HIVE-11817
             Project: Hive
          Issue Type: Bug
            Reporter: Jimmy Xiang
            Assignee: Jimmy Xiang
            Priority: Minor


This query
{noformat}
select key, max(value) over (order by key rows between 10 preceding and 20 
following) from src1 where length(key) > 10;
{noformat}
fails with NPE:
{noformat}
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)
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to