-
Couldn't load subscription status.
- Fork 28.9k
[SPARK-19864][SQL][TEST]provide a makeQualifiedPath functions to optimize some code #17204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Test build #74176 has finished for PR 17204 at commit
|
|
Test build #74188 has started for PR 17204 at commit |
|
Test build #74189 has started for PR 17204 at commit |
| * does not contain a scheme, this path will not be changed after the default | ||
| * FileSystem is changed. | ||
| */ | ||
| def makeQualifiedPath(path: URI, hadoopConf: Configuration): URI = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about taking path as a string?
|
Test build #74191 has finished for PR 17204 at commit
|
7c26d3e to
016cb12
Compare
|
Test build #74192 has finished for PR 17204 at commit
|
| * does not contain a scheme, this path will not be changed after the default | ||
| * FileSystem is changed. | ||
| */ | ||
| def makeQualifiedPath(path: String): URI = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems we can take File as parameter?
|
Test build #74193 has finished for PR 17204 at commit
|
|
thanks, merging to master! |
What changes were proposed in this pull request?
Currently there are lots of places to make the path qualified, it is better to provide a function to do this, then the code will be more simple.
How was this patch tested?
N/A