Open dongpohezui opened 3 years ago
Patch coverage: 33.33%
and project coverage change: -0.04%
:warning:
Comparison is base (
10e0fc8
) 85.22% compared to head (271da38
) 85.19%. Report is 70 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Did you manage to track down what is the origin of this extra '/'? Which part of code added it? Asking this to make sure the same issue wouldn't pop up in some other scenarios with different code paths.
Also, can you please add a unittest covering this case?
The URL comes from user input. Under Linux, it works just fine. Under Windows, it makes mistakes.
In get_filesystem_and_path_or_paths(), URLparse () is used to handle URLs.
Under Windows, the file cannot be accessed via the file path "/D:/test/test.parquet ". Instead, it should be "D:/test/test.parquet".
In my opinion, you can only test this code under Windows.
version: Windows 10 Python 3.7.0 petastorm 0.9.8 pyarrow 3.0.0
The following error occurred when I ran the above code under Windows.
The image above shows that there is an extra '/' at the beginning of the file path. So I deleted the extra '/' .