Github user fhueske commented on a diff in the pull request: https://github.com/apache/flink/pull/5241#discussion_r160250511 --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/table/codegen/AggregationCodeGenerator.scala --- @@ -121,7 +121,7 @@ class AggregationCodeGenerator( // get parameter lists for aggregation functions val parametersCode = aggFields.map { inFields => - val fields = inFields.map { f => + val fields = inFields.filter(index => index > -1).map { f => --- End diff -- `filter(index => index > -1)` can be shortend to `filter(_ > -1)`
---