lsyldliu commented on a change in pull request #11830:
URL: https://github.com/apache/flink/pull/11830#discussion_r486064098
##########
File path:
flink-table/flink-table-runtime-blink/src/main/java/org/apache/flink/table/runtime/operators/aggregate/GroupAggFunction.java
##########
@@ -180,7 +179,7 @@ public void processElement(RowData input, Context ctx,
Collector<RowData> out) t
// if this was not the first row and we have to emit
retractions
if (!firstRow) {
- if (!stateCleaningEnabled &&
equaliser.equals(prevAggValue, newAggValue)) {
+ if (stateRetentionTime > 0 &&
equaliser.equals(prevAggValue, newAggValue)) {
Review comment:
you are write
----------------------------------------------------------------
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:
[email protected]