Github user wuchong commented on a diff in the pull request:
https://github.com/apache/flink/pull/4105#discussion_r126865636
--- Diff:
flink-libraries/flink-table/src/test/java/org/apache/flink/table/api/java/utils/UserDefinedAggFunctions.java
---
@@ -59,7 +59,7 @@ public boolean requiresOver() {
/**
* Accumulator for WeightedAvg.
*/
- public static class WeightedAvgAccum extends Tuple2<Long, Integer> {
--- End diff --
TypeExtractor will recognize `WeightedAvgAccum` as a `TupleType` which will
ignore the `sum` and `count` fields when de/serialize. So I changed it as a
POJO class. This should not be included in this PR. But I fixed it when I find
it.
---
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.
---