Github user shaoxuan-wang commented on a diff in the pull request:
https://github.com/apache/flink/pull/3470#discussion_r104301022
--- Diff:
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/functions/aggfunctions/AvgAggFunction.scala
---
@@ -137,6 +146,15 @@ abstract class BigIntegralAvgAggFunction[T] extends
AggregateFunction[T] {
}
}
+ override def retract(accumulator: Accumulator, value: Any): Unit = {
--- End diff --
I assume you are suggesting implement LongAvgAggFunction directly with
JTuple2[BigInteger, Long] as the accumulator, then yes, we could do that.
---
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.
---