[
https://issues.apache.org/jira/browse/FLINK-17610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17104257#comment-17104257
]
Yun Tang commented on FLINK-17610:
----------------------------------
Original discussion thread:
http://apache-flink-mailing-list-archive.1008284.n3.nabble.com/DISCUSS-Align-the-behavior-of-internal-return-result-of-MapState-entries-keys-values-and-iterator-td41269.html
> Align the behavior of result of internal map state to return empty iterator
> ---------------------------------------------------------------------------
>
> Key: FLINK-17610
> URL: https://issues.apache.org/jira/browse/FLINK-17610
> Project: Flink
> Issue Type: Improvement
> Components: Runtime / State Backends
> Affects Versions: 1.11.0
> Reporter: Nicholas Jiang
> Priority: Minor
>
> There are different behaviors of result of internal map state. For
> HeapMapState, #entries(), #keys(), #values(), and #iterator() would all
> return null. However, for RocksDBMapState, #entries() would return null,
> while #keys(), #values(), #iterator() would return empty iterator.
> UserFacingMapState would align these behaviors to empty iterator for users,
> therefore this should better align these internal behavior to return empty
> iterator instead of null.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)