You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2017/11/12 16:25:00 UTC

[jira] [Assigned] (SPARK-22497) Reuse project

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

Apache Spark reassigned SPARK-22497:
------------------------------------

    Assignee: Apache Spark

> Reuse project
> -------------
>
>                 Key: SPARK-22497
>                 URL: https://issues.apache.org/jira/browse/SPARK-22497
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 2.3.0
>            Reporter: Yuming Wang
>            Assignee: Apache Spark
>
> The below SQL will scan {{table1}} twice. It can reuse the first Project.
> {code:sql}
> with p1 as (select * from table1 where key < 100), 
> s1 as (SELECT key, count(*) FROM p1 group by key), 
> s2 as (SELECT key, count(*) FROM p1 where key > -100 group by key) 
> select s1.* from s1 join s2 on s1.key= s2.key
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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