Github user rtudoran commented on the issue:
https://github.com/apache/flink/pull/3732
@fhueske @stefanobortoli I suggest we merge this temporary solution into
flink (with using a special marker for distinct) until the flink module will be
upgraded to the next calcite release. I have fixed the issue into calcite.
However, the advantages of pushing already this is that:
1) we can reuse the code
2) when we have the distinct marker we can simply modify the check for
distinct for the aggregates in the DataStreamOver
---
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.
---