[
https://issues.apache.org/jira/browse/FLINK-22125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17321843#comment-17321843
]
Roc Marshal commented on FLINK-22125:
-------------------------------------
When we judge whether mapstate is empty or not, there may be some logical
loopholes, such as using 'is_ empty () 'method instead of`_ is_ empty ` variable
> 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)