[ 
https://issues.apache.org/jira/browse/SPARK-13428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15156457#comment-15156457
 ] 

Apache Spark commented on SPARK-13428:
--------------------------------------

User 'gatorsmile' has created a pull request for this issue:
https://github.com/apache/spark/pull/11298

> Pushdown Aggregate Functions in Sort into Aggregate
> ---------------------------------------------------
>
>                 Key: SPARK-13428
>                 URL: https://issues.apache.org/jira/browse/SPARK-13428
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.6.0, 2.0.0
>            Reporter: Xiao Li
>
> Spark SQL is unable to resolve the following query. 
> {code}
>     sql(
>       """
>         |select area, sum(product) over () as c from windowData
>         |where product > 3 group by area, product
>         |having avg(month) > 0 order by area, avg(month), product
>       """.stripMargin)
> {code}
> We need to push down the aggregate functions in Sort into Aggregate.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to