Github user fhueske commented on a diff in the pull request:
https://github.com/apache/flink/pull/3851#discussion_r116211361
--- Diff:
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/plan/rules/dataSet/DataSetAggregateRule.scala
---
@@ -53,8 +54,17 @@ class DataSetAggregateRule
// check if we have distinct aggregates
val distinctAggs = agg.getAggCallList.exists(_.isDistinct)
+ if (distinctAggs) {
+ throw TableException("DISTINCT aggregates are currently not
supported.")
+ }
+
+ // check if we have over aggregates
+ val overAggs =
agg.getAggCallList.exists(_.getAggregation.requiresOver())
+ if (overAggs) {
+ throw TableException("OVER clause is necessary for requires over
window functions")
--- End diff --
The error message should list the aggregation functions that require OVER
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---