hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Szehon Ho (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-11817) Window function max NullPointerException
Date Mon, 14 Sep 2015 20:07:46 GMT

    [ https://issues.apache.org/jira/browse/HIVE-11817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14744152#comment-14744152
] 

Szehon Ho commented on HIVE-11817:
----------------------------------

Looks good to me, +1

> 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)

Mime
View raw message