tustvold opened a new issue, #4199:
URL: https://github.com/apache/arrow-rs/issues/4199

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   <!--
   A clear and concise description of what the problem is. Ex. I'm always 
frustrated when [...] 
   (This section helps Arrow developers understand the context and *why* for 
this feature, in addition to  the *what*)
   -->
   
   Various builders such as `AmazonS3Builder`, `MicrosoftAzureBuilder`, etc.. 
provide a `with_url` method.
   
   However, with exception to URL patterns such as 
`https://s3.region.amazonaws.com/bucket` which encode the bucket name in the 
URL, they ignore the path. This is surprising and inconsistent with stores such 
as `HttpStore` and `LocalFileSystem` which have a built-in notion of a prefix.
   
   This can to a certain extent be worked around with `PrefixStore`, but 
implementing this logic correctly requires duplicating the logic to understand 
what parts of a given URL are the prefix
   
   **Describe the solution you'd like**
   <!--
   A clear and concise description of what you want to happen.
   -->
   
   I would like the cloud stores to have a `with_prefix` option, and to 
populate this within `with_url`.
   
   **Describe alternatives you've considered**
   <!--
   A clear and concise description of any alternative solutions or features 
you've considered.
   -->
   
   **Additional context**
   <!--
   Add any other context or screenshots about the feature request here.
   -->
   
   Relates to #4047
   
   delta-rs has some logic 
[here](https://github.com/delta-io/delta-rs/blob/c8371b38fdf22802f0f91b4ddc2a47da6be97c68/rust/src/storage/config.rs#LL198C5-L198C5)
 to handle this, although this will misbehave for URLs where the bucket name is 
encoded in the path.
   


-- 
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: github-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to