[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

Fabian Hueske created FLINK-10359:

             Summary: 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.6.0, 1.5.3, 1.7.0
            Reporter: Fabian Hueske

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