kylebarron opened a new issue, #398:
URL: https://github.com/apache/arrow-rs-object-store/issues/398

   **Describe the bug**
   
   In Azure, there is a URL format like:
   
   ```
   https://overturemapswestus2.blob.core.windows.net/release/path/to/file.txt
   ```
   
   this is 
   
   ```
   https://{account_name}.blob.core.windows.net/{container_name}/{file_path}
   ```
   
   However the container name is included in the file path in 
`ObjectStoreScheme::parse`. I'd argue this is a bug, but it's at least very 
confusing.
   
   
   
   **To Reproduce**
   
   ```rust
   #[test]
   fn test_prefix() {
       let url = 
"https://overturemapswestus2.blob.core.windows.net/release/path/to/file.txt";;
       let (scheme, path) = 
ObjectStoreScheme::parse(&url.parse().unwrap()).unwrap();
       assert_eq!(scheme, ObjectStoreScheme::MicrosoftAzure);
       assert_eq!(path, Path::from("path/to/file.txt"));
   }
   ```
   
   The `release/` should be taken off the resulting Path in my opinion.
   
   **Expected behavior**
   
   Expected the container name to be taken off the path before returning. I.e. 
I expect the path to be the path inside the container.
   
   **Additional context**
   
   https://github.com/developmentseed/obstore/issues/477


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to