[2.4][SPARK-31935][SQL] Hadoop file system config should be effective in data source options #28771
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Make Hadoop file system config effective in data source options.
From
org.apache.hadoop.fs.FileSystem.java:Before changes, the file system configurations in data source options are not propagated in
DataSource.scala.After changes, we can specify authority and URI schema related configurations for scanning file systems.
This problem only exists in data source V1. In V2, we already use
sparkSession.sessionState.newHadoopConfWithOptions(options)inFileTable.Why are the changes needed?
Allow users to specify authority and URI schema related Hadoop configurations for file source reading.
Does this PR introduce any user-facing change?
Yes, the file system related Hadoop configuration in data source option will be effective on reading.
How was this patch tested?
Unit test