Github user Xpray commented on a diff in the pull request:
https://github.com/apache/flink/pull/4785#discussion_r143430248
--- Diff:
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/runtime/aggregate/GroupAggProcessFunction.scala
---
@@ -129,17 +129,19 @@ class GroupAggProcessFunction(
state.update(accumulators)
cntState.update(inputCnt)
- // if this was not the first row and we have to emit retractions
- if (generateRetraction && !firstRow) {
+ // if this was not the first row and we may have to emit retractions
--- End diff --
I've removed this comment.
---