hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aihua Xu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-10140) Window boundary is not compared correctly
Date Fri, 01 May 2015 14:40:06 GMT

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

Aihua Xu commented on HIVE-10140:
---------------------------------

[~ashutoshc] Can you help review the change? The change is to make the supported window boundary
to "between 10 preceding and 2 preceding". I notice window boundary with "preceding" only
doesn't work properly and will fix in HIVE-10555.

> Window boundary is not compared correctly
> -----------------------------------------
>
>                 Key: HIVE-10140
>                 URL: https://issues.apache.org/jira/browse/HIVE-10140
>             Project: Hive
>          Issue Type: Bug
>          Components: PTF-Windowing
>    Affects Versions: 1.0.0
>            Reporter: Yi Zhang
>            Assignee: Aihua Xu
>            Priority: Minor
>         Attachments: HIVE-10140.patch
>
>
> “ROWS between 10 preceding and 2 preceding” is not handled correctly.
> Underlying error: Window range invalid, start boundary is greater than end boundary:
window(start=range(10 PRECEDING), end=range(2 PRECEDING))
> If I change it to “2 preceding and 10 preceding”, the syntax works but the results
are 0 of course.
> Reason for the function: during analysis, it is sometimes desired to design the window
to filter the most recent events, in the case of the events' responses are not available yet.
There is a workaround for this, but it is better/more proper to fix the bug. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message