apache / apache/arrow-rs-object-store

Ability to get actually full path/URL, e.g. from ObjectMeta

Open
#259 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
322
Forks
212
Avg merge
5d 2h
Merged PRs (30d)
10

Description

**Is your feature request related to a problem or challenge? Please describe what you are trying to do.**

It would be nice to have a function/attribute to give me the full URL for an object. Currently, the ObjectMeta.location provides the path _within_ the object store but I would like to get the full URL such as "gs://bucket/dir/file.txt".

**Describe the solution you'd like**

Maybe add an attribute "uri" to the ObjectMeta struct or provide a new function `.get_uri` on the ObjectStore struct.

**Additional context**

The reason I am looking for this is that I need to pass the URL a different program and it would be nice to keep all the logic centralised in the object_store library instead of having a separate function with "if gcp: "gs://" + path elif aws: "s3://" + path" etc.

Contributor guide

Open the contributing guide

Research direction

Start by locating the ObjectMeta and ObjectStore definitions and reading how location and provider configuration are represented. Compare the requested ObjectMeta uri attribute with an ObjectStore get_uri method, then check existing tests for object-store URLs. Done means a consistent provider-specific full URI can be obtained without callers rebuilding it themselves.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.