Details
-
Improvement
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
None
-
None
Description
Currently, AggregateExpandWithinDistinctRule does not fire if any of the aggregate calls in the aggregate have a filter. We should support filters.
For example, the following query will not be handled by the current rule due to the FILTER clause:
SELECT deptno,
SUM(sal),
SUM(sal) WITHIN DISTINCT (job) FILTER (WHERE ename LIKE 'A%')
FROM emp
GROUP BY deptno
Attachments
Issue Links
- links to