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 2018/12/10 03:02:00 UTC

[jira] [Commented] (FLINK-10359) Scala example in DataSet docs is broken

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

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

yanghua opened a new pull request #7266: [FLINK-10359] Scala example in DataSet docs is broken
URL: https://github.com/apache/flink/pull/7266
 
 
   ## What is the purpose of the change
   
   *This pull request fixed scala example in DataSet docs is broken*
   
   
   ## Brief change log
   
     - *Fix Scala example in DataSet docs is broken*
   
   
   ## 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): (yes / **no**)
     - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (yes / **no**)
     - The serializers: (yes / **no** / don't know)
     - The runtime per-record code paths (performance sensitive): (yes / **no** / don't know)
     - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (yes / **no** / don't know)
     - The S3 file system connector: (yes / **no** / don't know)
   
   ## Documentation
   
     - Does this pull request introduce a new feature? (yes / **no**)
     - If yes, how is the feature documented? (not applicable / docs / JavaDocs / **not documented**)
   

----------------------------------------------------------------
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:
users@infra.apache.org


> Scala example in DataSet docs is broken
> ---------------------------------------
>
>                 Key: FLINK-10359
>                 URL: https://issues.apache.org/jira/browse/FLINK-10359
>             Project: Flink
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 1.5.3, 1.6.0, 1.7.0
>            Reporter: Fabian Hueske
>            Assignee: vinoyang
>            Priority: Major
>              Labels: pull-request-available
>
> The Scala example of [https://ci.apache.org/projects/flink/flink-docs-release-1.6/dev/batch/dataset_transformations.html#combinable-groupreducefunctions] is broken.
> The {{asScala}} and the {{reduce}} call fetch the Java {{Iterator}} which may only fetched once.
> {quote}The Iterable can be iterated over only once. Only the first call to 'iterator()' will succeed.{quote}
> While we are on it, it would make sense to check the other examples as well.



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