wuchong commented on a change in pull request #11797: URL: https://github.com/apache/flink/pull/11797#discussion_r411198620
########## File path: flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/plan/utils/WindowEmitStrategy.scala ########## @@ -63,7 +63,7 @@ class WindowEmitStrategy( def produceUpdates: Boolean = { if (isEventTime) { - allowLateness > 0 || earlyFireDelayEnabled || lateFireDelayEnabled + earlyFireDelayEnabled || lateFireDelayEnabled Review comment: Yes. I think this is a bug when we merging blink code. A window aggregation can produce updates only when early fire or late fire is enabled. `allowLateness` is just a hint to the statebackend for how long to keep the state when window is closed. If late data never trigger emission, the window still produce insert-only messages. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org