You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Ashutosh Chauhan (JIRA)" <ji...@apache.org> on 2013/03/04 03:07:12 UTC

[jira] [Commented] (HIVE-4111) Default value in lag is not handled correctly

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

Ashutosh Chauhan commented on HIVE-4111:
----------------------------------------

Stack trace from reducer:
{noformat}
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
	at java.util.ArrayList.remove(ArrayList.java:390)
	at org.apache.hadoop.hive.ql.udf.generic.GenericUDAFLag$LagBuffer.terminate(GenericUDAFLag.java:86)
	at org.apache.hadoop.hive.ql.udf.generic.GenericUDAFLeadLag$GenericUDAFLeadLagEvaluator.terminate(GenericUDAFLeadLag.java:175)
	at org.apache.hadoop.hive.ql.udf.generic.GenericUDAFEvaluator.evaluate(GenericUDAFEvaluator.java:177)
	at org.apache.hadoop.hive.ql.udf.ptf.WindowingTableFunction.execute(WindowingTableFunction.java:102)
	at org.apache.hadoop.hive.ql.udf.ptf.WindowingTableFunction.execute(WindowingTableFunction.java:62)
	at org.apache.hadoop.hive.ql.exec.PTFOperator.executeChain(PTFOperator.java:282)
	at org.apache.hadoop.hive.ql.exec.PTFOperator.processInputPartition(PTFOperator.java:205)
	at org.apache.hadoop.hive.ql.exec.PTFOperator.processOp(PTFOperator.java:139)
	at org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:529)
	at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:857)
	at org.apache.hadoop.hive.ql.exec.ExtractOperator.processOp(ExtractOperator.java:45)
	at org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:529)
	at org.apache.hadoop.hive.ql.exec.ExecReducer.reduce(ExecReducer.java:256)

{noformat}
                
> Default value in lag is not handled correctly
> ---------------------------------------------
>
>                 Key: HIVE-4111
>                 URL: https://issues.apache.org/jira/browse/HIVE-4111
>             Project: Hive
>          Issue Type: Bug
>          Components: PTF-Windowing
>            Reporter: Ashutosh Chauhan
>
> select s, lag(s, 3, 'fred') over (partition by f order by b) from over100k;
> results in runtime exception.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira