Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-9985

Incorrect parameter order in document

    XMLWordPrintableJSON

Details

    Description

      https://ci.apache.org/projects/flink/flink-docs-release-1.5/dev/stream/operators/windows.html#incremental-window-aggregation-with-foldfunction

      public Tuple3<String, Long, Integer> fold(Tuple3<String, Long, Integer> acc, SensorReading s) {
            Integer cur = acc.getField(2);
            acc.setField(2, cur + 1); // incorrect parameter order , it should be acc.setField(cur + 1, 2)
            return acc;
        }
      

      Attachments

        Issue Links

          Activity

            People

              mingleizhang zhangminglei
              mingleizhang zhangminglei
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: