HuangXingBo commented on a change in pull request #16276:
URL: https://github.com/apache/flink/pull/16276#discussion_r657883013



##########
File path: flink-python/pyflink/datastream/state.py
##########
@@ -316,6 +316,10 @@ def __init__(self, name: str, value_type_info: 
TypeInformation):
         :param name: The name of the state.
         :param value_type_info: the type information of the state.
         """
+        if not isinstance(value_type_info, PickledBytesTypeInfo):

Review comment:
       Move this logic to the `StateDescriptor`? After that,  we can remove the 
duplicate code in every child StateDescriptor




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


Reply via email to