Skip to content

Conversation

@tgravescs
Copy link
Contributor

https://issues.apache.org/jira/browse/SPARK-10858

The issue here is that in resolveURI we default to calling new File(path).getAbsoluteFile().toURI(). But if the path passed in already has a # in it then File(path) will think that is supposed to be part of the actual file path and not a fragment so it changes # to %23. Then when we try to parse that later in Client as a URI it doesn't recognize there is a fragment.

so to fix we just check if there is a fragment, still create the File like we did before and then add the fragment back on.

@srowen
Copy link
Member

srowen commented Oct 8, 2015

Pretty sure this is right, yeah

@SparkQA
Copy link

SparkQA commented Oct 8, 2015

Test build #43425 has finished for PR 9035 at commit 4cd8912.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • case class BinaryHashJoinNode(
    • case class BroadcastHashJoinNode(
    • trait HashJoinNode

@tgravescs
Copy link
Contributor Author

Jenkins, test this please

@SparkQA
Copy link

SparkQA commented Oct 9, 2015

Test build #43467 has finished for PR 9035 at commit 4cd8912.

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

@vanzin
Copy link
Contributor

vanzin commented Oct 9, 2015

LGTM, merging.

@asfgit asfgit closed this in 63c340a Oct 9, 2015
asfgit pushed a commit that referenced this pull request Oct 9, 2015
https://issues.apache.org/jira/browse/SPARK-10858

The issue here is that in resolveURI we default to calling new File(path).getAbsoluteFile().toURI().  But if the path passed in already has a # in it then File(path) will think that is supposed to be part of the actual file path and not a fragment so it changes # to %23. Then when we try to parse that  later in Client as a URI it doesn't recognize there is a fragment.

so to fix we just check if there is a fragment, still create the File like we did before and then add the fragment back on.

Author: Tom Graves <[email protected]>

Closes #9035 from tgravescs/SPARK-10858.

(cherry picked from commit 63c340a)
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.

4 participants