Github user fhueske commented on a diff in the pull request:
https://github.com/apache/flink/pull/3732#discussion_r112694144
--- Diff:
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/plan/nodes/datastream/DataStreamOverAggregate.scala
---
@@ -224,13 +244,21 @@ class DataStreamOverAggregate(
def createBoundedAndCurrentRowOverWindow(
generator: CodeGenerator,
inputDS: DataStream[Row],
+ distinctVarMap : Map[String,Boolean],
isRowTimeType: Boolean,
isRowsClause: Boolean): DataStream[Row] = {
val overWindow: Group = logicWindow.groups.get(0)
val partitionKeys: Array[Int] = overWindow.keys.toArray
val namedAggregates: Seq[CalcitePair[AggregateCall, String]] =
generateNamedAggregates
+ val aggregateCalls = overWindow.getAggregateCalls(logicWindow)
+ val distinctAggFlags: Array[Boolean] = new
Array[Boolean](aggregateCalls.size)
+ for (i <- 0 until aggregateCalls.size()){
--- End diff --
+space `.size()) {`
---
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.
---