[SPARK-33094][SQL][2.4] Make ORC format propagate Hadoop config from DS options to underlying HDFS file system#29987
Closed
MaxGekk wants to merge 2 commits intoapache:branch-2.4from
Closed
Conversation
…DS options to underlying HDFS file system
Propagate ORC options to Hadoop configs in Hive `OrcFileFormat` and in the regular ORC datasource.
There is a bug that when running:
```scala
spark.read.format("orc").options(conf).load(path)
```
The underlying file system will not receive the conf options.
Yes
Added UT to `OrcSourceSuite`.
Authored-by: Max Gekk <max.gekkgmail.com>
Signed-off-by: Dongjoon Hyun <dhyunapple.com>
(cherry picked from commit c5f6af9)
Signed-off-by: Max Gekk <max.gekkgmail.com>
Closes apache#29985 from MaxGekk/orc-option-propagation-3.0.
Authored-by: Max Gekk <max.gekk@gmail.com>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
(cherry picked from commit 9892b3e)
Signed-off-by: Max Gekk <max.gekk@gmail.com>
|
Test build #129586 has finished for PR 29987 at commit
|
|
Kubernetes integration test starting |
|
Kubernetes integration test status success |
|
Test build #129588 has finished for PR 29987 at commit
|
Member
Author
|
@dongjoon-hyun @HyukjinKwon Please, review this PR. |
HyukjinKwon
approved these changes
Oct 9, 2020
Member
|
Merged to branch-2.4. |
HyukjinKwon
pushed a commit
that referenced
this pull request
Oct 10, 2020
…DS options to underlying HDFS file system
### What changes were proposed in this pull request?
Propagate ORC options to Hadoop configs in Hive `OrcFileFormat` and in the regular ORC datasource.
### Why are the changes needed?
There is a bug that when running:
```scala
spark.read.format("orc").options(conf).load(path)
```
The underlying file system will not receive the conf options.
### Does this PR introduce _any_ user-facing change?
Yes
### How was this patch tested?
Added UT to `OrcSourceSuite`.
Closes #29987 from MaxGekk/orc-option-propagation-2.4.
Authored-by: Max Gekk <max.gekk@gmail.com>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?
Propagate ORC options to Hadoop configs in Hive
OrcFileFormatand in the regular ORC datasource.Why are the changes needed?
There is a bug that when running:
spark.read.format("orc").options(conf).load(path)The underlying file system will not receive the conf options.
Does this PR introduce any user-facing change?
Yes
How was this patch tested?
Added UT to
OrcSourceSuite.