gyfora commented on code in PR #29011:
URL: https://github.com/apache/flink/pull/29011#discussion_r4002098682


##########
flink-libraries/flink-state-processing-api/src/main/java/org/apache/flink/state/catalog/StateCatalog.java:
##########
@@ -697,6 +726,20 @@ private static List<ResolvedTable> 
candidateTablesForOperator(
             }
         }
 
+        KeyedStateSchemaInfo windowSchemaInfo =
+                StateTableUtils.getWindowKeyedStateSchema(metadata, opId);
+        if (!windowSchemaInfo.stateSchemas.isEmpty()) {
+            candidates.add(new ResolvedTable(opId, StateReaderMode.WINDOWED));
+            for (Map.Entry<String, KeyedStateSchemaInfo.StateEntryInfo> entry :
+                    windowSchemaInfo.stateSchemas.entrySet()) {
+                StateType stateType = entry.getValue().stateType;
+                if (stateType == StateType.LIST || stateType == StateType.MAP) 
{
+                    candidates.add(
+                            new ResolvedTable(opId, 
StateReaderMode.WINDOWED_FLAT, entry.getKey()));
+                }

Review Comment:
   looks completely correct to me, WINDOWED_FLAT is only created for list and 
map states



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