[ https://issues.apache.org/jira/browse/FLINK-22125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17321863#comment-17321863 ]
Dian Fu commented on FLINK-22125: --------------------------------- Hi [~RocMarshal], there is a method named is_empty() in MapState. You could refer to https://github.com/apache/flink/blob/master/flink-python/pyflink/datastream/state.py#L262 for more details. Not sure what do you mean about _is_empty()? > Revisit the return value of MapState.get when the key doesn't exist > ------------------------------------------------------------------- > > Key: FLINK-22125 > URL: https://issues.apache.org/jira/browse/FLINK-22125 > Project: Flink > Issue Type: Sub-task > Components: API / Python > Affects Versions: 1.13.0 > Reporter: Dian Fu > Priority: Major > Fix For: 1.13.0 > > > Currently, it will thrown KeyError if the key doesn't exist for MapState in > Python DataStream API. However, it returns null in the Java DataStream API. > Maybe we should keep the behavior the same across Python DataStream API and > Java DataStream API. -- This message was sent by Atlassian Jira (v8.3.4#803005)