GCP: Add gcs.write.object-context.* catalog property support(parity with S3 write.tags) - #16996
Open
revanthgss wants to merge 2 commits into
Open
GCP: Add gcs.write.object-context.* catalog property support(parity with S3 write.tags)#16996revanthgss wants to merge 2 commits into
revanthgss wants to merge 2 commits into
Conversation
revanthgss
force-pushed
the
gcsfileio-write-context-feature
branch
from
June 28, 2026 16:12
3a1ca12 to
ace52f4
Compare
…with S3 write.tags)
revanthgss
force-pushed
the
gcsfileio-write-context-feature
branch
from
June 28, 2026 16:19
ace52f4 to
fc581fa
Compare
Author
|
@danielcweeks @talatuyarer Could you please review this PR? Thanks. |
|
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions. |
Author
|
Marking as not stale. |
Author
|
@nastra @talatuyarer Could you please take a look at this PR? Let me know if you have any concerns. Thanks. |
Contributor
|
@revanthgss i will take a look next week. |
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.
GCS: add
gcs.write.object-context.*catalog property support (parity with S3write.tags)Closes #16995
Overview
Adds write-time GCS object context annotation support to
GCSFileIO, providing parity withs3.write.tags.*in the AWS module. Object contexts are GCS's equivalent of S3 object tags —key-value metadata serialized into the upload request and committed atomically with the object,
with no extra API call. Object Contexts are GA as of April 2026.
Changes
GCPPropertiesGCS_WRITE_OBJECT_CONTEXT_PREFIX = "gcs.write.object-context."Map<String, String> writeObjectContexts, stripping the prefix to yield plain context keyswriteObjectContexts()GCSOutputStreambuildBlobInfo(BlobId, GCPProperties)— whenwriteObjectContexts()isnon-empty, builds
ObjectCustomContextPayloadentries and sets them viaBlobInfo.Builder.setContexts(ObjectContexts)before passingBlobInfotostorage.writer()setContextsis never called — zero overhead on the existing pathwrite,close,getPos) are unchangedExample usage
Related
Checklist
./gradlew :iceberg-gcp:test)./gradlew :iceberg-gcp:spotlessCheck)google-cloud-storageresolved version confirmed ≥ 2.57(
./gradlew :iceberg-gcp:dependencyInsight --dependency google-cloud-storage)AI Disclosure
LLM is used to research the existing S3 implementation and draft the GCS File IO changes and drafting the PR description.