flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-7475) support update() in ListState
Date Sat, 11 Nov 2017 23:19:01 GMT

    [ https://issues.apache.org/jira/browse/FLINK-7475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16248723#comment-16248723
] 

ASF GitHub Bot commented on FLINK-7475:
---------------------------------------

Github user bowenli86 commented on the issue:

    https://github.com/apache/flink/pull/4963
  
    Hi @yunfan123  Thanks for the feedback, and I agree with you.
    
    Well, here's the problem: Flink seems to be using the StringAppendTestOperator as merge
operator from RocksDB, which added a ',' between values. But I didn't find how a java class
for StringAppendTestOperator. 
    
    Shall we mimic StringAppendTestOperator and concatenate the values with ',' ourselves?
Do you have any more suggestions?


> support update() in ListState
> -----------------------------
>
>                 Key: FLINK-7475
>                 URL: https://issues.apache.org/jira/browse/FLINK-7475
>             Project: Flink
>          Issue Type: Improvement
>          Components: Core, DataStream API, State Backends, Checkpointing
>    Affects Versions: 1.4.0
>            Reporter: yf
>            Assignee: Bowen Li
>             Fix For: 1.5.0
>
>
> If I want to update the list. 
> I have to do two steps: 
> listState.clear() 
> for (Element e : myList) { 
>     listState.add(e); 
> } 
> Why not I update the state by: 
> listState.update(myList) ?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message