[
https://issues.apache.org/jira/browse/FLINK-5315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16563766#comment-16563766
]
Rong Rong commented on FLINK-5315:
----------------------------------
Actually I agree with [~hequn8128] that these are two kinds of distincts.
However I think the point [~fhueske] made here is that having
{{`b.count.distinct}} by itself, it is not clear which kind of distinct it is
referring to (syntactically).
However, I think [~hequn8128] made one very good point. If I understand
correctly, {{distinct}} operation has to operate on a whole table and it
doesn't make sense to operator on a single column. e.g.
{{table.select('a.distinct, 'b)}} will never be valid. I even think the actual
correct representation of distinct in this situation would be
{{select.distinct('a, 'b)}}.
What do you guys 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)