Github user HyukjinKwon commented on the issue:

    https://github.com/apache/spark/pull/15131
  
    I just took a look. The problematic code is here, 
[SparkContext.scala#L1429](https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/SparkContext.scala#L1429).
    
    We should not directly use `new URI` with Windows path because the paths 
such as `C:\a\b\c` is not the valid URI as below:
    
    ```scala
    scala> new 
java.net.URI("C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\RtmpegI4mr\\hello92023051e13.txt")
    java.net.URISyntaxException: Illegal character in opaque part at index 2: 
C:\Users\appveyor\AppData\Local\Temp\1\RtmpegI4mr\hello92023051e13.txt
      at java.net.URI$Parser.fail(URI.java:2848)
      at java.net.URI$Parser.checkChars(URI.java:3021)
      at java.net.URI$Parser.parse(URI.java:3058)
      at java.net.URI.<init>(URI.java:588)
      ... 33 elided
    ```
    
    I took a look the APIs taking `path` as an argument in `SparkContext` and 
it seems this one is only the case. It seems the similar case is being handled 
in 
[SparkContext.scala#L1702-L1707](https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/SparkContext.scala#L1702-L1707).
    
    I can open a separate PR, post a PR to @yanboliang's forked repo or just 
let you fix this in here. Please let me know.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to