Skip to content
Snippets Groups Projects
Commit f8709218 authored by Reynold Xin's avatar Reynold Xin
Browse files

[HOTFIX] Fix the problem for real this time.

parent d2614eaa
No related branches found
No related tags found
No related merge requests found
......@@ -29,9 +29,9 @@ import org.apache.spark.sql.{SparkSession, SQLContext}
*/
@deprecated("Use SparkSession.withHiveSupport instead", "2.0.0")
class HiveContext private[hive](
sparkSession: SparkSession,
_sparkSession: SparkSession,
isRootContext: Boolean)
extends SQLContext(sparkSession, isRootContext) with Logging {
extends SQLContext(_sparkSession, isRootContext) with Logging {
self =>
......@@ -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(super.sparkSession.newSession(), isRootContext = false)
new HiveContext(sparkSession.newSession(), isRootContext = false)
}
protected[sql] override def sessionState: HiveSessionState = {
super.sparkSession.sessionState.asInstanceOf[HiveSessionState]
sparkSession.sessionState.asInstanceOf[HiveSessionState]
}
protected[sql] override def sharedState: HiveSharedState = {
super.sparkSession.sharedState.asInstanceOf[HiveSharedState]
sparkSession.sharedState.asInstanceOf[HiveSharedState]
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment