Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull container name from URL for Azure blob #5371

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

bradvoth
Copy link
Contributor

@bradvoth bradvoth commented Feb 7, 2024

Blob URLs within Azure have the container name as the first path parameter when formatted in this way:

https://<account>.blob.core.windows.net/<container>/ case

Which issue does this PR close?

Closes #5370

Rationale for this change

This is support for an additional blob URL format that is provided directly from Azure.

What changes are included in this PR?

An additional test case for this format as well as an additional parsing step when the url scheme matches https and when the hostname matches dfs.core.windows.net or blob.core.windows.net

Are there any user-facing changes?

Users with blob URLs in this format will no longer need to manually provide the container when using from_url

@github-actions github-actions bot added the object-store Object Store Interface label Feb 7, 2024
Copy link
Contributor

@tustvold tustvold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks plausible to me, thank you

@tustvold tustvold merged commit bc824d2 into apache:master Feb 8, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
object-store Object Store Interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for additional URL formats in object_store for Azure blob
2 participants