You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by rx...@apache.org on 2017/04/05 05:46:54 UTC
spark git commit: Small doc fix for ReuseSubquery.
Repository: spark
Updated Branches:
refs/heads/master c1b8b6675 -> b6e71032d
Small doc fix for ReuseSubquery.
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/b6e71032
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/b6e71032
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/b6e71032
Branch: refs/heads/master
Commit: b6e71032d92a072b7c951e5ea641e9454b5e70ed
Parents: c1b8b66
Author: Reynold Xin <rx...@databricks.com>
Authored: Tue Apr 4 22:46:42 2017 -0700
Committer: Reynold Xin <rx...@databricks.com>
Committed: Tue Apr 4 22:46:42 2017 -0700
----------------------------------------------------------------------
.../src/main/scala/org/apache/spark/sql/execution/subquery.scala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/b6e71032/sql/core/src/main/scala/org/apache/spark/sql/execution/subquery.scala
----------------------------------------------------------------------
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/execution/subquery.scala b/sql/core/src/main/scala/org/apache/spark/sql/execution/subquery.scala
index 58be2d1..d11045f 100644
--- a/sql/core/src/main/scala/org/apache/spark/sql/execution/subquery.scala
+++ b/sql/core/src/main/scala/org/apache/spark/sql/execution/subquery.scala
@@ -150,7 +150,7 @@ case class PlanSubqueries(sparkSession: SparkSession) extends Rule[SparkPlan] {
/**
- * Find out duplicated exchanges in the spark plan, then use the same exchange for all the
+ * Find out duplicated subqueries 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 exchanges to avoid O(N*N) sameResult calls.
+ // Build a hash map using schema of subqueries to avoid O(N*N) sameResult calls.
val subqueries = mutable.HashMap[StructType, ArrayBuffer[SubqueryExec]]()
plan transformAllExpressions {
case sub: ExecSubqueryExpression =>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org