Github user taoli91 commented on the pull request:

    https://github.com/apache/spark/pull/12695#issuecomment-215283532
  
    > Where you're manually handling paths with regexes seems suboptimal.
    @srowen The regex parts are actually dealing with the URI. The default URI 
can't correctly handle the absolute Windows local path. It will recognize the 
drive label to be scheme. For example `new URI("D:\test")` will return a scheme 
of D. I can't find a JDK method to handle this problem, thus I have to use 
regex to find out the label and manually append a `/` in front of the path. 
E.g., convert `D:\test` to `/D:/test` before passing to the constructor of URI 


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to