GitHub user juliuszsompolski opened a pull request:
https://github.com/apache/spark/pull/20679
[SPARK-23514] Use SessionState.newHadoopConf() to propage hadoop configs
set in SQLConf.
## What changes were proposed in this pull request?
A few places in `spark-sql` were using `sc.hadoopConfiguration` directly.
They should be using `sessionState.newHadoopConf()` to blend in configs that
were set through `SQLConf`.
Also, for better UX, for these configs blended in from `SQLConf`, we should
consider removing the `spark.hadoop` prefix, so that the settings are
recognized whether or not they were specified by the user.
## How was this patch tested?
Tested that AlterTableRecoverPartitions now correctly recognizes settings
that are passed in to the FileSystem through SQLConf.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/juliuszsompolski/apache-spark SPARK-23514
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/20679.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #20679
----
commit 2c070fcd053acb47d8a8c3214d67e106b5683376
Author: Juliusz Sompolski <julek@...>
Date: 2018-02-26T15:13:23Z
spark-23514
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]