Re: Support COUNT(DISTINCT 'field') Query Yet?
Posted by
Fabian Hueske-2 on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Support-COUNT-DISTINCT-field-Query-Yet-tp18343p18344.html
Hi Tao,
DISTINCT aggregates in group windows are not supported yet.
There's currently a discussion on the dev mailing list about this feature [1].
Since we are only a few days before the feature freeze of Flink 1.5.0, it might be included in 1.6.0, about 4-5 months from now.
As a workaround, you can implement a custom user-defined aggregation function [2] that performs distinct counts.
Cheers,
Fabian