Github user viirya commented on a diff in the pull request:
https://github.com/apache/spark/pull/12689#discussion_r61198809
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/internal/SessionState.scala ---
@@ -48,8 +48,21 @@ private[sql] class SessionState(sparkSession:
SparkSession) {
* SQL-specific key-value configurations.
*/
lazy val conf: SQLConf = new SQLConf
- lazy val hadoopConf: Configuration = {
- new Configuration(sparkSession.sparkContext.hadoopConfiguration)
+
+ def newHadoopConf(): Configuration = {
+ val hadoopConf = new
Configuration(sparkSession.sparkContext.hadoopConfiguration)
+ conf.getAllConfs.foreach { case (k, v) => if (v ne null)
hadoopConf.set(k, v) }
--- End diff --
oh, I thought we do not want to override. Then even we directly set
sparkContext.hadoopConfiguration, it is still possibly overridden by conf.
---
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]