diff options
author | Reynold Xin <rxin@databricks.com> | 2016-04-25 21:24:06 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-04-25 21:24:06 -0700 |
commit | d2614eaadb93a48fba27fe7de64aff942e345f8e (patch) | |
tree | abe502ae1fe2cd27d84fd3602486659efa6cbdb1 /sql | |
parent | 18c2c92580bdc27aa5129d9e7abda418a3633ea6 (diff) | |
download | spark-d2614eaadb93a48fba27fe7de64aff942e345f8e.tar.gz spark-d2614eaadb93a48fba27fe7de64aff942e345f8e.tar.bz2 spark-d2614eaadb93a48fba27fe7de64aff942e345f8e.zip |
[HOTFIX] Fix compilation
Diffstat (limited to 'sql')
-rw-r--r-- | sql/hivecontext-compatibility/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/hivecontext-compatibility/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala b/sql/hivecontext-compatibility/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala index 65fcba81c4..bb768979e1 100644 --- a/sql/hivecontext-compatibility/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala +++ b/sql/hivecontext-compatibility/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala @@ -29,7 +29,7 @@ import org.apache.spark.sql.{SparkSession, SQLContext} */ @deprecated("Use SparkSession.withHiveSupport instead", "2.0.0") class HiveContext private[hive]( - @transient private val sparkSession: SparkSession, + sparkSession: SparkSession, isRootContext: Boolean) extends SQLContext(sparkSession, isRootContext) with Logging { @@ -47,15 +47,15 @@ class HiveContext private[hive]( * and Hive client (both of execution and metadata) with existing HiveContext. */ override def newSession(): HiveContext = { - new HiveContext(sparkSession.newSession(), isRootContext = false) + new HiveContext(super.sparkSession.newSession(), isRootContext = false) } protected[sql] override def sessionState: HiveSessionState = { - sparkSession.sessionState.asInstanceOf[HiveSessionState] + super.sparkSession.sessionState.asInstanceOf[HiveSessionState] } protected[sql] override def sharedState: HiveSharedState = { - sparkSession.sharedState.asInstanceOf[HiveSharedState] + super.sparkSession.sharedState.asInstanceOf[HiveSharedState] } } |