sandeep-katta commented on a change in pull request #24489: [SPARK-27555][SQL] 
sqlConf of SessionState  should load hive-site.xml
URL: https://github.com/apache/spark/pull/24489#discussion_r279611160
 
 

 ##########
 File path: 
sql/core/src/test/scala/org/apache/spark/sql/SparkSessionBuilderSuite.scala
 ##########
 @@ -152,4 +152,9 @@ class SparkSessionBuilderSuite extends SparkFunSuite with 
BeforeAndAfterEach {
       session.sparkContext.hadoopConfiguration.unset(mySpecialKey)
     }
   }
+
+  test("SPARK-27555: Spark SessionState.conf should load hive-site.xml ") {
+    val session = SparkSession.builder().master("local").getOrCreate()
+    assert(session.sessionState.conf.getConfString("hive.in.test") == "true")
 
 Review comment:
   "hive.in.test" is present in hive-site.xml which is loaded into hadoop conf, 
so this test asserts presence of hive conf in sessionState.conf, more over we 
cannot use hive conf inside spark-defaults.conf

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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]

Reply via email to