hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashutosh Chauhan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-4193) OVER clauses with BETWEEN in the window definition produce wrong results
Date Wed, 20 Mar 2013 19:55:16 GMT

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

Ashutosh Chauhan commented on HIVE-4193:
----------------------------------------

Actually all of them have window range spec, so then this is different than HIVE-4190. [~alangates]
Can you upload a result diff for one of these queries. This could be related to stable sort
issue.
                
> OVER clauses with BETWEEN in the window definition produce wrong results
> ------------------------------------------------------------------------
>
>                 Key: HIVE-4193
>                 URL: https://issues.apache.org/jira/browse/HIVE-4193
>             Project: Hive
>          Issue Type: Bug
>          Components: PTF-Windowing
>    Affects Versions: 0.11.0
>            Reporter: Alan Gates
>
> Window queries that define a windowing clause that has a termination row often (though
not all) return incorrect results.  For example, from our test queries all of the following
return incorrect results:
> {code}
> select s, sum(f) over (partition by t order by b 
>        rows between current row and unbounded following) 
> from over100k;
> select s, avg(f) over (partition by b order by d 
>        rows between 5 preceding and current row) 
> from over100k;
> select s, avg(f) over (partition by bin order by s 
>        rows between current row and 5 following) 
> from over100k;
> select s, avg(d) over (partition by i order by f desc 
>        rows between 5 preceding and 5 following) 
> from over100k;
> {code}

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

Mime
View raw message