SEPURI-SAI-KRISHNA commented on code in PR #29412:
URL: https://github.com/apache/flink/pull/29412#discussion_r4230588190


##########
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/stream/StreamExecOverAggregate.java:
##########
@@ -321,7 +321,11 @@ private KeyedProcessFunction<RowData, RowData, RowData> 
createUnboundedOverProce
                         JavaScalaConversionUtil.toScala(aggCalls),
                         new boolean[aggCalls.size()],
                         false, // needInputCount
-                        true, // isStateBackendDataViews
+                        // The non-time functions keep one accumulator per 
sort key in state.
+                        // State backed data views are bound to the key, not 
to the sort key, so
+                        // all of those accumulators would share a single 
view. Keep the views in
+                        // the accumulator instead, so each sort key gets its 
own copy.
+                        timeAttribute != TimeAttribute.NON_TIME, // 
isStateBackendDataViews

Review Comment:
   Cited it in the ignore comment.
   



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to