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

Harish Butani commented on HIVE-4394:
-------------------------------------

Previously we used to return the first/last value in the window if the 
evaluation of lag/lead amounted to an index that crossed the boundary. Now we 
return the default value. Since in this e.g. we don't have a default value, we 
return null.

Also the way we interpret this query maybe different from Postgres. We treat 
the lag function as a UDF when it appears as an argument of a UDAF. So we do 
the sum in one pass. As far as I know this concept of lead/lag udfs is unique 
to us. Is Postgres allowing for UDAFs to be arguments of other UDAFs. We don't 
support this.
                
> test leadlag.q fails
> --------------------
>
>                 Key: HIVE-4394
>                 URL: https://issues.apache.org/jira/browse/HIVE-4394
>             Project: Hive
>          Issue Type: Bug
>          Components: PTF-Windowing
>            Reporter: Namit Jain
>
> ant test -Dtestcase=TestCliDriver -Dqfile=leadlag.q fails.
> cc [~rhbutani]

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

Reply via email to