diff options
author | jerryshao <saisai.shao@intel.com> | 2014-12-16 14:08:28 -0800 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2014-12-16 14:08:28 -0800 |
commit | dc8280dcca7b54793a3db644f74fd33460960d4a (patch) | |
tree | 35982e55b070df239c47c60324c4cd842350cf46 /sql/core | |
parent | 1a9e35e57ab80984b81802ffc461d19cc9239edd (diff) | |
download | spark-dc8280dcca7b54793a3db644f74fd33460960d4a.tar.gz spark-dc8280dcca7b54793a3db644f74fd33460960d4a.tar.bz2 spark-dc8280dcca7b54793a3db644f74fd33460960d4a.zip |
[SPARK-4847][SQL]Fix "extraStrategies cannot take effect in SQLContext" issue
Author: jerryshao <saisai.shao@intel.com>
Closes #3698 from jerryshao/SPARK-4847 and squashes the following commits:
4741130 [jerryshao] Make later added extraStrategies effect when calling strategies
Diffstat (limited to 'sql/core')
-rw-r--r-- | sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala b/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala index 31cc4170aa..ebd4cc920b 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala @@ -327,7 +327,7 @@ class SQLContext(@transient val sparkContext: SparkContext) def numPartitions = self.numShufflePartitions - val strategies: Seq[Strategy] = + def strategies: Seq[Strategy] = extraStrategies ++ ( CommandStrategy(self) :: DataSourceStrategy :: |