Github user fhueske commented on a diff in the pull request: https://github.com/apache/flink/pull/6001#discussion_r187871263 --- Diff: docs/dev/stream/operators/windows.md --- @@ -883,7 +883,7 @@ private static class AverageAggregate @Override public Double getResult(Tuple2<Long, Long> accumulator) { - return accumulator.f0 / accumulator.f1; + return (double) accumulator.f0 / accumulator.f1; --- End diff -- Should probably be `((double) accumulator.f0) / accumulator.f1;`
---