spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jiaan.geng (Jira)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-30396) When there are multiple DISTINCT aggregate expressions acting on different fields, any DISTINCT aggregate expression allows the use of the FILTER clause
Date Tue, 31 Dec 2019 08:25:00 GMT

     [ https://issues.apache.org/jira/browse/SPARK-30396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

jiaan.geng updated SPARK-30396:
-------------------------------
    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;

  was:
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

 


> When there are multiple DISTINCT aggregate expressions acting on different fields, any
DISTINCT aggregate expression allows the use of the FILTER clause
> --------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-30396
>                 URL: https://issues.apache.org/jira/browse/SPARK-30396
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: jiaan.geng
>            Priority: Major
>
> 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;



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message