[
https://issues.apache.org/jira/browse/HIVE-11817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jimmy Xiang updated HIVE-11817:
-------------------------------
Attachment: HIVE-11817.1.patch
> 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
> Fix For: 1.3.0, 2.0.0
>
> Attachments: HIVE-11817.1.patch
>
>
> 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)