[
https://issues.apache.org/jira/browse/FLINK-5315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16555328#comment-16555328
]
Fabian Hueske commented on FLINK-5315:
--------------------------------------
I think we need syntax for different cases. Built in aggregation functions
could be done with {{'a.distinct.sum}} as Timo proposed. UDAGGs with a single
parameter as {{myUdagg('a.distinct)}} and aggregation functions with multiple
parameters as {{multiParamAgg('a.distinct, 'b.distinct)}} with additional
validation that either all or no parameter is distinct.
> 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)