flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] Jennifer-sarah commented on a change in pull request #6625: [hotfix][docs] Fix some error about the example of stateful source function in state documentatition
Date Sat, 01 Sep 2018 11:03:27 GMT
Jennifer-sarah commented on a change in pull request #6625: [hotfix][docs] Fix some error about
the example of stateful source function in state documentatition
URL: https://github.com/apache/flink/pull/6625#discussion_r214510786
 
 

 ##########
 File path: docs/dev/stream/state/state.md
 ##########
 @@ -668,7 +668,7 @@ public static class CounterSource
     @Override
     public void restoreState(List<Long> state) {
         for (Long s : state)
-            offset = s;
+            offset += s;
 
 Review comment:
   hi, from your side , why not use `offset = s.get(0)` ?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message