Skip to content

Commit 375b692

Browse files
committed
Unable to reproduce it in my local environment. Print more info.
1 parent a2d71fd commit 375b692

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveSessionCatalog.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ private[sql] class HiveSessionCatalog(
4747
sparkSession: SparkSession,
4848
functionResourceLoader: FunctionResourceLoader,
4949
functionRegistry: FunctionRegistry,
50-
conf: SQLConf,
51-
hiveconf: HiveConf)
50+
hiveconf: HiveConf,
51+
conf: SQLConf)
5252
extends SessionCatalog(externalCatalog, functionResourceLoader, functionRegistry, conf) {
5353

5454
override def setCurrentDatabase(db: String): Unit = {

sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveSessionState.scala

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ private[hive] class HiveSessionState(sparkSession: SparkSession)
6363
lazy val hiveconf: HiveConf = {
6464
val c = executionHive.conf
6565
conf.setConf(c.getAllProperties)
66+
// scalastyle:off println
67+
println("conf.hiveMetastoreWarehouse: " + conf.hiveMetastoreWarehouse)
68+
// scalastyle:on println
6669
c
6770
}
6871

@@ -78,8 +81,8 @@ private[hive] class HiveSessionState(sparkSession: SparkSession)
7881
sparkSession,
7982
functionResourceLoader,
8083
functionRegistry,
81-
conf,
82-
hiveconf)
84+
hiveconf,
85+
conf)
8386
}
8487

8588
/**

0 commit comments

Comments
 (0)