Skip to content

Conversation

@windpiger
Copy link
Contributor

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

@SparkQA
Copy link

SparkQA commented Mar 8, 2017

Test build #74176 has finished for PR 17204 at commit 7125a1b.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Mar 8, 2017

Test build #74188 has started for PR 17204 at commit 9e10983.

@SparkQA
Copy link

SparkQA commented Mar 8, 2017

Test build #74189 has started for PR 17204 at commit 9f096b8.

* does not contain a scheme, this path will not be changed after the default
* FileSystem is changed.
*/
def makeQualifiedPath(path: URI, hadoopConf: Configuration): URI = {
Copy link
Contributor

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?

@SparkQA
Copy link

SparkQA commented Mar 8, 2017

Test build #74191 has finished for PR 17204 at commit 7c26d3e.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@windpiger windpiger force-pushed the addQualifiledPathUtil branch from 7c26d3e to 016cb12 Compare March 8, 2017 08:14
@SparkQA
Copy link

SparkQA commented Mar 8, 2017

Test build #74192 has finished for PR 17204 at commit 016cb12.

  • This patch fails to build.
  • This patch merges cleanly.
  • This patch adds no public classes.

* does not contain a scheme, this path will not be changed after the default
* FileSystem is changed.
*/
def makeQualifiedPath(path: String): URI = {
Copy link
Contributor

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?

@windpiger windpiger changed the title [SPARK-19864][SQL]provide a makeQualifiedPath functions to optimize some code [SPARK-19864][SQL][TEST]provide a makeQualifiedPath functions to optimize some code Mar 8, 2017
@SparkQA
Copy link

SparkQA commented Mar 8, 2017

Test build #74193 has finished for PR 17204 at commit efdc9b7.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@asfgit asfgit closed this in f3387d9 Mar 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants