Skip to content

fix(integrations/object_store): preserve read and stat attributes - #9636

Merged
Xuanwo merged 1 commit into
mainfrom
xuanwo/opendal-metadata-row
Dec 4, 2026
Merged

Xuanwo merged 1 commit into
mainfrom
xuanwo/opendal-metadata-row

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Dec 4, 2026

Copy link
Copy Markdown
Member

Which issue does this PR close?

Closes #9554.

Rationale for this change

The adapter discarded the GetResult attributes returned by the wrapped store. On object_store 0.14.2, InMemory returns the headers it stores after both single and multipart writes. Those headers were missing from OpenDAL read and stat metadata.

What changes are included in this PR?

Map Cache-Control, Content-Disposition, Content-Encoding, Content-Language, Content-Type, and user metadata from the SDK's existing GET and HEAD responses. File metadata stays available when optional attributes exceed OpenDAL's compact metadata capacity. Include user metadata when the complete map fits.

Are there any user-facing changes?

Operator::stat and reader metadata now expose the representable attributes supplied by the wrapped store. In object_store 0.14.2, InMemory returns stored attributes and LocalFileSystem returns basic object metadata and rejects attribute-bearing single and multipart writes. Writing user metadata through a wrapped store requires an explicit capability override for a store known to support it.

Breaking changes

AI Usage Statement

  • Harness — Pi via T3 Code. Model — magpie/codex/gpt-6.2-sol. Effort — max. Role — Reproduced the omission, implemented the response conversion, and verified it against the SDK's real InMemory and LocalFileSystem stores. Runtime evidence covers these two implementations.
  • Harness — Pi via T3 Code. Model — magpie/codex/gpt-6.2-astra. Effort — xhigh. Role — Scoped the follow-up to metadata representable by the current adapter and its existing operations.
  • Harness — Pi via T3 Code. Model — magpie/codex/gpt-6.2-sol. Effort — high. Role — Independently reviewed the patch, exercised the SDK stores and the compact metadata size boundary, and inspected nonempty version pass-through in the source.

@Xuanwo
Xuanwo requested a review from PsiACE December 4, 2026 00:41
@Xuanwo
Xuanwo merged commit 69ba1f5 into main Dec 4, 2026
46 checks passed
@Xuanwo
Xuanwo deleted the xuanwo/opendal-metadata-row branch December 4, 2026 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(integrations/object_store): align ObjectStoreService advertised capabilities and forward multipart concurrency

2 participants