tustvold opened a new issue, #356: URL: https://github.com/apache/arrow-rs-object-store/issues/356
**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*) --> Some object store URL conventions encode the bucket name in the path of the URL, e.g. `https://ACCOUNT_ID.r2.cloudflarestorage.com/<bucket>/<path>`, instead of the host e.g. `s3://<bucket>/<path>` `ObjectStoreScheme::parse` returns both the `ObjectStoreScheme` and the `Path` within that store to handle this, however, it is insufficient when implementing an ObjectStoreRegistry (#348) where we need something to key the store based on. **Describe the solution you'd like** <!-- A clear and concise description of what you want to happen. --> I'd like a mechanism given a URL to determine the store and path components. ``` /// Path to an object in an ObjectStore pub struct ObjectStoreUrl { scheme: ObjectStoreScheme, store: Url, path: Path, } impl ObjectStoreUrl { pub fn parse(url: &Url) -> Result<Self> {...} /// Returns the scheme of this URL pub fn scheme(&self) -> ObjectStoreScheme { ... } /// Returns the URL of the store root pub fn store(&self) -> &Url { ... } /// Returns the path to the object within the store pub fn path(&self) -> &Path { ... } } ``` **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. --> -- 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