GitHub user viirya opened a pull request: https://github.com/apache/spark/pull/14452
[SPARK-16849][SQL] Improve subquery execution by deduplicating the subqueries with the same results ## What changes were proposed in this pull request? The subqueries in SparkSQL will be run even they have the same physical plan and output same results. We should be able to deduplicate these subqueries which are referred in a query for many times. ## How was this patch tested? Jenkins tests. You can merge this pull request into a Git repository by running: $ git pull https://github.com/viirya/spark-1 single-exec-subquery Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/14452.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 #14452 ---- commit 00b29ede65b84e0fc99ab9e0ebd33f6092077bbc Author: Liang-Chi Hsieh <sim...@tw.ibm.com> Date: 2016-08-01T03:41:34Z Dedup common subqueries. ---- --- 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