Github user fhueske commented on a diff in the pull request:
https://github.com/apache/flink/pull/3851#discussion_r116592552
--- Diff:
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/plan/logical/operators.scala
---
@@ -584,13 +592,22 @@ case class WindowAggregate(
}
override def validate(tableEnv: TableEnvironment): LogicalNode = {
+ implicit val relBuilder: RelBuilder = tableEnv.getRelBuilder
val resolvedWindowAggregate =
super.validate(tableEnv).asInstanceOf[WindowAggregate]
val groupingExprs = resolvedWindowAggregate.groupingExpressions
val aggregateExprs = resolvedWindowAggregate.aggregateExpressions
aggregateExprs.foreach(validateAggregateExpression)
groupingExprs.foreach(validateGroupingExpression)
def validateAggregateExpression(expr: Expression): Unit = expr match {
+ case Alias(child, _, _) => validateAggregateExpression(child)
--- End diff --
Same comments as for `Aggregate` apply here.
---
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.
---