Github user zsxwing commented on a diff in the pull request:
https://github.com/apache/spark/pull/16826#discussion_r102541237
--- Diff:
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveSessionState.scala ---
@@ -146,4 +108,144 @@ private[hive] class HiveSessionState(sparkSession:
SparkSession)
conf.getConf(HiveUtils.HIVE_THRIFT_SERVER_ASYNC)
}
+ override def copy(sparkSession: SparkSession): HiveSessionState = {
+ val sparkContext = sparkSession.sparkContext
+ val confCopy = conf.clone
+ val copyHelper = SessionState(sparkSession, Some(confCopy))
+ val catalogCopy = catalog.copy(
+ sparkSession,
+ confCopy,
+ SessionState.newHadoopConf(sparkContext.hadoopConfiguration,
confCopy),
+ copyHelper.functionRegistry,
+ copyHelper.sqlParser)
+ val hiveClient =
--- End diff --
I'm not sure if we should create a new HiveClient or not.
@yhuai do you know what states in the HiveClient related to a SparkSession?
In this method, we want to create a new HiveSessionState to inherit all states
in the current HiveSessionState.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]