You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/07/17 04:50:20 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=15381087#comment-15381087 ] 

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

GitHub user ASRagab opened a pull request:

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

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

    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ASRagab/flink master

Alternatively you can review and apply these changes as the patch at:

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

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2261
    
----
commit c5d06e59faccc6861960ad65f2535e1bb9d56793
Author: Ahmad Ragab <av...@gmail.com>
Date:   2016-07-17T04:38:33Z

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

commit 600a4fc09dfbe8f8e79e06b19c170201cb207098
Author: Ahmad Ragab <av...@gmail.com>
Date:   2016-07-17T04:43:37Z

    merge upstream/master

----


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