fhueske commented on code in PR #28326:
URL: https://github.com/apache/flink/pull/28326#discussion_r3387180458


##########
flink-table/flink-table-test-utils/src/main/java/org/apache/flink/table/runtime/functions/ProcessTableFunctionTestHarness.java:
##########
@@ -1164,40 +1721,45 @@ private List<ArgumentInfo> 
extractAndValidateTypeInference(
         }
 
         /** Creates appropriate StateConverter for the given state data type. 
*/
-        private StateConverter createStateConverter(DataType stateDataType, 
ClassLoader classLoader)
-                throws Exception {
-            LogicalType logicalType = stateDataType.getLogicalType();
+        private StateConverter createStateConverter(
+                DataType stateDataType, ClassLoader classLoader) {
+            DataType resolvedType =
+                    
ListView.class.isAssignableFrom(stateDataType.getConversionClass())
+                                    || MapView.class.isAssignableFrom(
+                                            stateDataType.getConversionClass())
+                            ? stateDataType.getChildren().get(0)

Review Comment:
   thanks for checking!



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