Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/src/main/scala/org/apache/spark/util/Utils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ private[spark] object Utils extends Logging with SparkClassUtils {
// `file` and `localhost` are not used. Just to prevent URI from parsing `fileName` as
// scheme or host. The prefix "/" is required because URI doesn't accept a relative path.
// We should remove it after we get the raw path.
encodeRelativeUnixPathToURIRawPath(fileName).substring(1)
encodeRelativeUnixPathToURIRawPath(fileName)
}

/**
Expand All @@ -453,7 +453,7 @@ private[spark] object Utils extends Logging with SparkClassUtils {
// `file` and `localhost` are not used. Just to prevent URI from parsing `fileName` as
// scheme or host. The prefix "/" is required because URI doesn't accept a relative path.
// We should remove it after we get the raw path.
new URI("file", null, "localhost", -1, "/" + path, null, null).getRawPath
new URI("file", null, "localhost", -1, "/" + path, null, null).getRawPath.substring(1)
}

/**
Expand Down