You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Rong Rong (JIRA)" <ji...@apache.org> on 2018/07/24 14:50:00 UTC

[jira] [Commented] (FLINK-5315) Support distinct aggregations in table api

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

Rong Rong commented on FLINK-5315:
----------------------------------

Since FLINK-8689 and FLINK-8690 has been checked in, I think we can enable this. I am in favor of this syntax:
{code:java}
t.select("count(distinct a), sum(b)")
{code}
Since doing a *.distinct* after a *.count* can be confused with getting all the distinct count aggregate results. 

> 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 &amp; 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)