You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Weijie Guo (Jira)" <ji...@apache.org> on 2023/06/07 08:59:00 UTC
[jira] [Commented] (FLINK-32275) The return value of PartitionableListState#get is inconsistent with the requirements of AppendingState
[ https://issues.apache.org/jira/browse/FLINK-32275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17730010#comment-17730010 ]
Weijie Guo commented on FLINK-32275:
------------------------------------
[~masteryhx] Would you mind taking a look at this? Thanks.
> The return value of PartitionableListState#get is inconsistent with the requirements of AppendingState
> ------------------------------------------------------------------------------------------------------
>
> Key: FLINK-32275
> URL: https://issues.apache.org/jira/browse/FLINK-32275
> Project: Flink
> Issue Type: Technical Debt
> Reporter: Weijie Guo
> Priority: Major
>
> The java doc of {{AppendingState#get()}} states that if the state is empty, then this method should return {{null}}. But for it's child class {{PartitionableListState}}, It does return a empty list instead of {{null}}. This has caused some confusion ,especially {{AppendingState}} is a {{PublicEvolving}} API.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)