GitHub user lianhuiwang opened a pull request:

    https://github.com/apache/spark/pull/14111

    [SPARK-16456][SQL] Reuse the uncorrelated scalar subqueries with the same 
logical plan in a query

    ## What changes were proposed in this pull request?
    In 
[TPCDS-Q14](https://github.com/apache/spark/blob/master/sql/core/src/test/resources/tpcds/q14a.sql)
 the same physical plan of uncorrelated scalar subqueries from a CTE could be 
executed multiple times, we should re-use the same result to avoid the 
duplicated computing.
    
    ## How was this patch tested?
    Pass the Jenkins tests (including a new testcase).
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/lianhuiwang/spark subquery-reuse

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/14111.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #14111
    
----
commit 5290e42d416897bea4914c7ef2472c7b8190ea0f
Author: Lianhui Wang <lianhuiwan...@gmail.com>
Date:   2016-07-09T04:18:13Z

    init commit

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to