Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs525-sp18-g07
spark
Commits
b6e71032
Commit
b6e71032
authored
7 years ago
by
Reynold Xin
Browse files
Options
Downloads
Patches
Plain Diff
Small doc fix for ReuseSubquery.
parent
c1b8b667
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sql/core/src/main/scala/org/apache/spark/sql/execution/subquery.scala
+2
-2
2 additions, 2 deletions
.../main/scala/org/apache/spark/sql/execution/subquery.scala
with
2 additions
and
2 deletions
sql/core/src/main/scala/org/apache/spark/sql/execution/subquery.scala
+
2
−
2
View file @
b6e71032
...
...
@@ -150,7 +150,7 @@ case class PlanSubqueries(sparkSession: SparkSession) extends Rule[SparkPlan] {
/**
* Find out duplicated
exchang
es in the spark plan, then use the same
exchange
for all the
* Find out duplicated
subqueri
es in the spark plan, then use the same
subquery result
for all the
* references.
*/
case
class
ReuseSubquery
(
conf
:
SQLConf
)
extends
Rule
[
SparkPlan
]
{
...
...
@@ -159,7 +159,7 @@ case class ReuseSubquery(conf: SQLConf) extends Rule[SparkPlan] {
if
(!
conf
.
exchangeReuseEnabled
)
{
return
plan
}
// Build a hash map using schema of
exchang
es to avoid O(N*N) sameResult calls.
// Build a hash map using schema of
subqueri
es to avoid O(N*N) sameResult calls.
val
subqueries
=
mutable
.
HashMap
[
StructType
,
ArrayBuffer
[
SubqueryExec
]]()
plan
transformAllExpressions
{
case
sub
:
ExecSubqueryExpression
=>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment