[
https://issues.apache.org/jira/browse/FLINK-9985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16562019#comment-16562019
]
ASF GitHub Bot commented on FLINK-9985:
---------------------------------------
lsyldliu opened a new pull request #6457: [FLINK-9985] Incorrect parameter
order in document
URL: https://github.com/apache/flink/pull/6457
## What is the purpose of the change
*(This pull request is aim to fix incorrect parameter order in document
about windows)*
## Brief change log
*(fix incorrect parameter order in document about windows)*
## Verifying this change
*(This change is a trivial rework / code cleanup without any test coverage.)*
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): (no)
- The public API, i.e., is any changed class annotated with
`@Public(Evolving)`: (no)
- The serializers: ( no)
- The runtime per-record code paths (performance sensitive): ( no )
- Anything that affects deployment or recovery: JobManager (and its
components), Checkpointing, Yarn/Mesos, ZooKeeper: (no)
- The S3 file system connector: (no)
## Documentation
- Does this pull request introduce a new feature? (no)
- If yes, how is the feature documented? (docs)
----------------------------------------------------------------
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:
[email protected]
> 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
>
> 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)