You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Aihua Xu (JIRA)" <ji...@apache.org> on 2015/05/04 19:00:27 UTC
[jira] [Assigned] (HIVE-10555) Windowing function for count(*) with
preceding rows doesn't work as expected
[ https://issues.apache.org/jira/browse/HIVE-10555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aihua Xu reassigned HIVE-10555:
-------------------------------
Assignee: Aihua Xu
> Windowing function for count(*) with preceding rows doesn't work as expected
> ----------------------------------------------------------------------------
>
> Key: HIVE-10555
> URL: https://issues.apache.org/jira/browse/HIVE-10555
> Project: Hive
> Issue Type: Bug
> Components: PTF-Windowing
> Affects Versions: 1.3.0
> Reporter: Aihua Xu
> Assignee: Aihua Xu
>
> The following windowing function always returns 0 for count(*).
> {noformat}
> Table t1
> key value
> 1 3
> 1 3
> 1 2
> select key, count(*) over (partition by key order by value rows between 1 preceding and 2 preceding) from t1;
> {noformat}
> Seems windowing functions have some issues when dealing with preceding window.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)