cloud-fan commented on a change in pull request #23709:
[SPARK-26794][SQL]SparkSession enableHiveSupport does not point to hive but
in-memory while the SparkContext exists
URL: https://github.com/apache/spark/pull/23709#discussion_r252662245
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/internal/SharedState.scala
##########
@@ -101,7 +102,7 @@ private[sql] class SharedState(val sparkContext:
SparkContext) extends Logging {
*/
lazy val externalCatalog: ExternalCatalogWithListener = {
val externalCatalog = SharedState.reflect[ExternalCatalog, SparkConf,
Configuration](
- SharedState.externalCatalogClassName(sparkContext.conf),
+ SharedState.externalCatalogClassName(sparkContext.conf, initConfig),
Review comment:
we can do
```
val conf = sparkContext.conf.clone()
initConfig.foreach(conf.set...)
SharedState.externalCatalogClassName(conf)
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]