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

Hequn Cheng commented on FLINK-5315:
------------------------------------

[~walterddr] Hi, I think the truth is we can never write a \{{a.distinct}} 
expression. It is not valid. Because there are no aggregations return multi 
rows. It is only valid to do \{{a.count}}. And the difference between 
\{{a.agg.distinct}} and \{{a.agg}} is whether it is a distinct-agg. I think the 
semantic is very clear. What do you think? :)

> Support distinct aggregations in table api
> ------------------------------------------
>
>                 Key: FLINK-5315
>                 URL: https://issues.apache.org/jira/browse/FLINK-5315
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Table API & SQL
>            Reporter: Kurt Young
>            Assignee: Rong Rong
>            Priority: Major
>
> Such as 
> {code}
> t.select("count(distinct a), sum(b)")
> {code}
> or 
> {code}
> t.select('a.count.distinct), 'b.sum)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to