Github user fhueske commented on a diff in the pull request: https://github.com/apache/flink/pull/3354#discussion_r102835493 --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/table/functions/aggfunctions/SumAggFunction.scala --- @@ -32,7 +31,8 @@ abstract class SumAggFunction[T: Numeric] extends AggregateFunction[T] { /** The initial accumulator for Sum aggregate function */ class SumAccumulator[T] extends JTuple2[T, Boolean] with Accumulator { - var sum: T = null.asInstanceOf[T] + f0 = 0.asInstanceOf[T] //sum --- End diff -- change this to `f0 = numeric.zero`
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---