Skip to content

feat(rest): parse storage-credentials from LoadTableResponse#719

Open
plusplusjiajia wants to merge 1 commit into
apache:mainfrom
plusplusjiajia:feat-rest-storage-credentials
Open

feat(rest): parse storage-credentials from LoadTableResponse#719
plusplusjiajia wants to merge 1 commit into
apache:mainfrom
plusplusjiajia:feat-rest-storage-credentials

Conversation

@plusplusjiajia

Copy link
Copy Markdown
Member

Parse the optional storage-credentials field of LoadTableResponse / CreateTableResponse (per the Iceberg REST OpenAPI spec) and expose the vended credentials to callers.

  • New StorageCredential struct (prefix + config map) in types.h.
  • LoadTableResult gains a std::vector<StorageCredential> storage_credentials field (replacing the prior // TODO).
  • JSON serializer/deserializer round-trip the storage-credentials array.
  • RestCatalog::LoadTableResultFor() returns the raw LoadTableResult(including vended credentials) without binding a FileIO, so callers can build a per-table FileIO from server-vended short-lived credentials (e.g. S3 STS tokens). LoadTable() now delegates to it.

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.

1 participant