Github user walterddr commented on a diff in the pull request: https://github.com/apache/flink/pull/5555#discussion_r183880939 --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/table/codegen/AggregationCodeGenerator.scala --- @@ -151,8 +157,15 @@ class AggregationCodeGenerator( } } - // initialize and create data views - addReusableDataViews() + // get distinct filter of acc fields for each aggregate functions + val distinctAccType = s"${classOf[DistinctAccumulator[_, _]].getName}" + val isDistinctAggs = distinctAggs.map(_.nonEmpty) --- End diff -- Yes. You are right. Sorry I missed that. Just updated :-)
---