diff options
author | Davies Liu <davies.liu@gmail.com> | 2015-11-30 15:42:10 -0800 |
---|---|---|
committer | Davies Liu <davies.liu@gmail.com> | 2015-11-30 15:42:10 -0800 |
commit | ecc00ec3faf09b0e21bc4b468cb45e45d05cf482 (patch) | |
tree | f84143615c415148dd2b6db8bb9c78be601ac6ae | |
parent | 55358889309cf2d856b72e72e0f3081dfdf61cfa (diff) | |
download | spark-ecc00ec3faf09b0e21bc4b468cb45e45d05cf482.tar.gz spark-ecc00ec3faf09b0e21bc4b468cb45e45d05cf482.tar.bz2 spark-ecc00ec3faf09b0e21bc4b468cb45e45d05cf482.zip |
fix Maven build
-rw-r--r-- | sql/core/src/main/scala/org/apache/spark/sql/execution/SparkPlan.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/execution/SparkPlan.scala b/sql/core/src/main/scala/org/apache/spark/sql/execution/SparkPlan.scala index 507641ff82..a78177751c 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/execution/SparkPlan.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/execution/SparkPlan.scala @@ -43,7 +43,7 @@ abstract class SparkPlan extends QueryPlan[SparkPlan] with Logging with Serializ * populated by the query planning infrastructure. */ @transient - protected[spark] final val sqlContext = SQLContext.getActive().get + protected[spark] final val sqlContext = SQLContext.getActive().getOrElse(null) protected def sparkContext = sqlContext.sparkContext |