Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
We don't support OVER window distinct aggregates in Table API. Even though this is explicitly documented:
https://ci.apache.org/projects/flink/flink-docs-release-1.12/dev/table/tableApi.html#aggregations
// Distinct aggregation on over window Table result = orders .window(Over .partitionBy($("a")) .orderBy($("rowtime")) .preceding(UNBOUNDED_RANGE) .as("w")) .select( $("a"), $("b").avg().distinct().over($("w")), $("b").max().over($("w")), $("b").min().over($("w")) );
The distinct flag is set to false in OverConvertRule.