Github user fhueske commented on a diff in the pull request:
https://github.com/apache/flink/pull/3743#discussion_r112471307
--- Diff:
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/plan/ProjectionTranslator.scala
---
@@ -216,6 +216,26 @@ object ProjectionTranslator {
projectList += unresolved
}
+ case OverCall(agg, aggAlias, alias, _) =>
+ val overWindow = overWindows.find(_.alias.equals(alias))
+ val aggName = agg.child.asInstanceOf[UnresolvedFieldReference].name
+ val childrenOutput = parent.output
+ val candidates =
childrenOutput.filter(_.name.equalsIgnoreCase(aggName))
+
+ val resolvedFieldReference = if (candidates.length > 1) {
--- End diff --
The aggregations are automatically resolved and validated if we add `agg`
to the children of `OverCall`
---
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.
---