GitHub user gatorsmile opened a pull request:
https://github.com/apache/spark/pull/18169
[SPARK-20941] [SQL] Fix SubqueryExec Reuse
### What changes were proposed in this pull request?
Before this PR, Subquery reuse does not work. Below are three issues:
- Subquery reuse does not work.
- It is sharing the same `SQLConf` (`spark.sql.exchange.reuse`) with the
one for Exchange Reuse.
- No test case covers the rule Subquery reuse.
This PR is to fix the above three issues.
- Ignored the physical operator `SubqueryExec` when comparing two plans.
- Added a dedicated conf `spark.sql.subqueries.reuse` for controling
Subquery Reuse
- Added a test case for verifying the behavior
### How was this patch tested?
N/A
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gatorsmile/spark subqueryReuse
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/18169.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 #18169
----
commit 399a2115ef45a8b3f37eeaef617bc179606773c5
Author: Xiao Li <[email protected]>
Date: 2017-05-31T22:02:42Z
fix
----
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]