Github user fhueske commented on the pull request:

    
https://github.com/apache/flink/commit/629015fbff477f8a20d2142094e4015f4520e80b#commitcomment-15909895
  
    In 
flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/plan/functions/AggregateFunction.scala:
    In 
flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/plan/functions/AggregateFunction.scala
 on line 65:
    `groupingKeys` hold only the field indicies of the grouping keys, not the 
actual values. You need to do something like `outValue.setField(i, 
currentValue.getField(groupingKeys(i))`. For that you need to remember one 
input row (first or last doesn't matter, all have the same values in the 
grouping fields).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to