[ https://issues.apache.org/jira/browse/HIVE-4262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13621045#comment-13621045 ]
Phabricator commented on HIVE-4262: ----------------------------------- ashutoshc has commented on the revision "HIVE-4262 [jira] fix last_value UDAF behavior". A minor comment. Also, you might need to rebase this on trunk. INLINE COMMENTS ql/src/java/org/apache/hadoop/hive/ql/parse/WindowingSpec.java:241 It will be good to define as LAST_VALUE as public static final string in FunctionRegistry just like for LEAD, LAG etc. and than refer that in Registry as well as here. REVISION DETAIL https://reviews.facebook.net/D9837 To: JIRA, ashutoshc, hbutani > fix last_value UDAF behavior > ---------------------------- > > Key: HIVE-4262 > URL: https://issues.apache.org/jira/browse/HIVE-4262 > Project: Hive > Issue Type: Bug > Components: PTF-Windowing > Reporter: Harish Butani > Assignee: Harish Butani > Attachments: HIVE-4262.D9837.1.patch > > > When an Order Spec is present in an Over clause > last_value should return the value from the last row that matches the current > row's Sort Key. > See egs here http://msdn.microsoft.com/en-us/library/hh231517.aspx -- 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