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

Wrong ProcessWindowFunction.process argument in example of Incremental Window Aggregation with ReduceFunction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.2, 1.5.5, 1.6.2
    • None
    • Documentation

    Description

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

      Example use wrong "window" argument in process()

      JAVA example

      - out.collect(new Tuple2<Long, SensorReading>(window.getStart(), min));

      + out.collect(new Tuple2<Long, SensorReading>(context.window().getStart(), min));

       

      Scala example 2nd argument should be context:Context instead of window

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yuanyangwu Yuanyang Wu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 5m
                  5m
                  Remaining:
                  Remaining Estimate - 5m
                  5m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified