Github user fhueske commented on the issue:
https://github.com/apache/flink/pull/3765
Hi @haohui, thanks for the PR! I like the approach of the wrapping distinct
aggregator.
Unfortunately, this approach won't work with the upcoming changes for the
the UDAGG interface. The `AggregateFunction` interface won't define methods to
accumulate, etc. Instead, these methods can be implemented for different types,
will be identified by reflection and called from generated code. We handle
scalar and table functions the same way. See PR #3762 for how the
`AggregateFunction` interface will evolve.
Best, Fabian
---
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.
---