You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiao Li (JIRA)" <ji...@apache.org> on 2016/02/22 05:08:18 UTC

[jira] [Updated] (SPARK-13428) Pushdown Aggregate Functions in Sort into Aggregate

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

Xiao Li updated SPARK-13428:
----------------------------
    Description: 
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.

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


> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org