Github user fhueske commented on the issue:
https://github.com/apache/flink/pull/4521
Thanks for the PR @walterddr.
We also need to replace group aux functions in the expressions of the
filter predicate to support something like this:
```
HAVING
SUM(a) > 0 AND
QUARTER(HOP_START(ts, INTERVAL '15' MINUTE, INTERVAL '1' MINUTE)) = 1
```
But that's just a minor change.
I'll fix that, extend the tests to cover the case, and do some refactorings
before I merge this PR.
Cheers, Fabian---
