You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Robert Metzger (JIRA)" <ji...@apache.org> on 2016/08/08 12:54:20 UTC

[jira] [Closed] (FLINK-4226) Typo: Define Keys using Field Expressions example should use window and not reduce

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

Robert Metzger closed FLINK-4226.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 1.2.0

Resolved in http://git-wip-us.apache.org/repos/asf/flink/commit/0e0c40d8

Thank you for the contribution.

> Typo: Define Keys using Field Expressions example should use window and not reduce
> ----------------------------------------------------------------------------------
>
>                 Key: FLINK-4226
>                 URL: https://issues.apache.org/jira/browse/FLINK-4226
>             Project: Flink
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 1.0.3
>            Reporter: Ahmad Ragab
>            Priority: Trivial
>              Labels: documentation
>             Fix For: 1.2.0
>
>
> ...
> {code:java}
> val words: DataStream[WC] = // [...]
> val wordCounts = words.keyBy("word").window(/*window specification*/)
> // or, as a case class, which is less typing
> case class WC(word: String, count: Int)
> val words: DataStream[WC] = // [...]
> val wordCounts = words.keyBy("word").reduce(/*window specification*/)
> {code}
> Should be: 
> val wordCounts = words.keyBy("word").-reduce- window(/*window specification*/)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)