Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
3.0.0
-
None
-
None
Description
This ticket is related to https://issues.apache.org/jira/browse/SPARK-27986
This ticket will support:
When there are multiple DISTINCT aggregate expressions acting on different fields, any DISTINCT aggregate expression allows the use of the FILTER clause
such as:
select class_id, count(distinct sex), sum(distinct id) filter (where sex = 'man') from student group by class_id;
select class_id, count(distinct sex) filter (where class_id = 1), sum(distinct id) filter (where sex = 'man') from student group by class_id;