[
https://issues.apache.org/jira/browse/FLINK-5315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16560803#comment-16560803
]
Rong Rong commented on FLINK-5315:
----------------------------------
Hmm. Yes that's true we cannot have {{a.distinct}} by itself if {{a}} is column
expression. But if {{a}} is a table, for example: {{select(*).distinct}}, then
this is very much valid.
Yes but I agree, the best way to express this would've been {{
agg.distinct('arg1[, 'arg2]...) }} regardless whether this is an expression or
function since it is a modifier for the method. I think we can definitely do
that for function. I am ok with the {{'col.agg.distinct}} approach actually
despite a little confusion. what do you guys think [~fhueske][~twalthr]?
> 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)