refactor(storage): remove the configured_scheme parameter from storage impls#2338
Merged
CTTY merged 2 commits intoapache:mainfrom Apr 17, 2026
Merged
refactor(storage): remove the configured_scheme parameter from storage impls#2338CTTY merged 2 commits intoapache:mainfrom
CTTY merged 2 commits intoapache:mainfrom
Conversation
rchowell
commented
Apr 15, 2026
CTTY
approved these changes
Apr 17, 2026
Collaborator
CTTY
left a comment
There was a problem hiding this comment.
LGTM! Thanks for the contribution
| // Check prefix of s3 path. | ||
| let prefix = format!("{}://{}/", configured_scheme, op_info.name()); | ||
| // Use the URL scheme in the path for prefix matching. This enables | ||
| // use of S3-compatible storage backends using custom schemes (e.g., `minio://`, `r2://`). |
Collaborator
There was a problem hiding this comment.
this is a good point, maybe OSS storage can use this directly so we don't even need to fallback to OpenDalStorage::OSS?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
configured_schemefrom OpenDalStorage::{S3, Azdls} #2245What changes are included in this PR?
HashMap<Scheme, Arc<OpenDalStorage>>so aliases share a storage instanceBreak Change
We are removing a struct field from public types, so this would need to be release in 0.10.0
Are these changes tested?
Beyond the unit tests, I ran these integration tests.