[ 
https://issues.apache.org/jira/browse/FLINK-9985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chesnay Schepler closed FLINK-9985.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.6.0
                   1.5.3

master: d1ff833a05cc79c4c91c051c1a825ba656b81799
1.6: e331b0e1ffe0835956068f0e1db22950ff609d9e
1.5: a672bbcba00ac15f63c59bd0f511b2b13b8b59a6

> Incorrect parameter order in document
> -------------------------------------
>
>                 Key: FLINK-9985
>                 URL: https://issues.apache.org/jira/browse/FLINK-9985
>             Project: Flink
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 1.5.1
>            Reporter: zhangminglei
>            Assignee: zhangminglei
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.5.3, 1.6.0
>
>
> https://ci.apache.org/projects/flink/flink-docs-release-1.5/dev/stream/operators/windows.html#incremental-window-aggregation-with-foldfunction
> {code:java}
> public Tuple3<String, Long, Integer> fold(Tuple3<String, Long, Integer> acc, 
> SensorReading s) {
>       Integer cur = acc.getField(2);
>       acc.setField(2, cur + 1); // incorrect parameter order , it should be 
> acc.setField(cur + 1, 2)
>       return acc;
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to