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

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

Github user rmetzger commented on the issue:

    https://github.com/apache/flink/pull/2261
  
    merging ...


> 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
>
> ...
> {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)

Reply via email to