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

Lefty Leverenz commented on HIVE-9534:
--------------------------------------

Doc query:  [~the6campbells] said in the second comment on this issue:

{quote}
While Postgres may not support ISO-SQL syntax as shown other vendors do. That 
said, if the engine does not attempt to support distinct aggregation then a 
parsing error should be thrown and the documentation improved at
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+WindowingAndAnalytics
{quote}

So [~aihuaxu], what documentation changes are needed now that this issue is 
resolved?

> incorrect result set for query that projects a windowed aggregate
> -----------------------------------------------------------------
>
>                 Key: HIVE-9534
>                 URL: https://issues.apache.org/jira/browse/HIVE-9534
>             Project: Hive
>          Issue Type: Bug
>          Components: PTF-Windowing
>            Reporter: N Campbell
>            Assignee: Aihua Xu
>             Fix For: 2.1.0
>
>         Attachments: HIVE-9534.1.patch, HIVE-9534.2.patch, HIVE-9534.3.patch, 
> HIVE-9534.4.patch
>
>
> Result set returned by Hive has one row instead of 5
> {code}
> select avg(distinct tsint.csint) over () from tsint 
> create table  if not exists TSINT (RNUM int , CSINT smallint)
>  ROW FORMAT DELIMITED FIELDS TERMINATED BY '|' LINES TERMINATED BY '\n' 
>  STORED AS TEXTFILE;
> 0|\N
> 1|-1
> 2|0
> 3|1
> 4|10
> {code}



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

Reply via email to