[ 
https://issues.apache.org/jira/browse/SPARK-15899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15328056#comment-15328056
 ] 

Sean Owen commented on SPARK-15899:
-----------------------------------

OK, I had assumed that absolute paths on Windows would have to be specified 
like {{/c:/paths/to}}. I know that normal Windows paths are {{c:\paths\to}} of 
course, but this is a somewhat different context.

OK, so what is the value of the System property user.dir on Windows? does it 
start with c: and not /c: ? Yeah, then I see that this needs some special 
handling. You're right, we could have a utility method that just adds a {{/}} 
at the start if none is present, but that would silently turn relative paths 
into non-relative.

Can we use the {{File}} or {{Paths}} API to really do this right? it should 
give a URI object whose string rep is, I hope, exactly what's desired.

> file scheme should be used correctly
> ------------------------------------
>
>                 Key: SPARK-15899
>                 URL: https://issues.apache.org/jira/browse/SPARK-15899
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>            Reporter: Kazuaki Ishizaki
>            Priority: Minor
>
> [A RFC|https://www.ietf.org/rfc/rfc1738.txt] defines file scheme as 
> {{file://host/}} or {{file:///}}. 
> [Wikipedia|https://en.wikipedia.org/wiki/File_URI_scheme]
> [Some code 
> stuffs|https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala#L58]
>  use different prefix such as {{file:}}.
> It would be good to prepare a utility method to correctly add {{file://host}} 
> or {{file://} prefix.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to