Skip to content

Add doc example for multipart upload to MicrosoftAzure::create_multipart#802

Open
alamb wants to merge 1 commit into
apache:mainfrom
alamb:doc-example-create-multipart-azure
Open

Add doc example for multipart upload to MicrosoftAzure::create_multipart#802
alamb wants to merge 1 commit into
apache:mainfrom
alamb:doc-example-create-multipart-azure

Conversation

@alamb

@alamb alamb commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Rationale for this change

The low-level MultipartStore API had no worked example showing the full create_multipartput_partcomplete_multipart flow. This adds one for Azure, mirroring the S3 example in #801.

What changes are included in this PR?

  • A runnable (no_run) doc example on MicrosoftAzure::create_multipart showing the full low-level flow.
  • Documents Azure-specific behavior

Are there any user-facing changes?

Documentation only. No API changes.

Add a runnable (`no_run`) example on the `MultipartStore` impl for
`MicrosoftAzure` showing the full low-level flow: `create_multipart`,
`put_part` for each part, and `complete_multipart` to finalize.

Also link to the example from `MultipartStore::create_multipart` so it
is discoverable from the trait definition.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Comment thread src/azure/mod.rs
/// Azure stores each part as a block, so a single blob may contain at most
/// 50,000 parts, each up to 4,000 MiB. Parts may be uploaded concurrently and
/// in any order, provided each is given the correct `part_idx`. See
/// [Azure block blob limits] for the full set of size and count constraints.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Image

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

from https://learn.microsoft.com/en-us/rest/api/storageservices/put-block

which is already linked in the comment, 👍

@alamb alamb added the documentation Improvements or additions to documentation label Jul 10, 2026

@kevinjqliu kevinjqliu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM i tested this against my azure storage account, works like a charm

Comment thread src/azure/mod.rs
/// Azure stores each part as a block, so a single blob may contain at most
/// 50,000 parts, each up to 4,000 MiB. Parts may be uploaded concurrently and
/// in any order, provided each is given the correct `part_idx`. See
/// [Azure block blob limits] for the full set of size and count constraints.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

from https://learn.microsoft.com/en-us/rest/api/storageservices/put-block

which is already linked in the comment, 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants