Skip to content

Lazily resolve credentials in SqlStage and minor Iceberg credential handling refactor#29440

Queued
JohnFitzpatrick44 wants to merge 2 commits into
trinodb:masterfrom
JohnFitzpatrick44:jcf/refactor-cred-handling
Queued

Lazily resolve credentials in SqlStage and minor Iceberg credential handling refactor#29440
JohnFitzpatrick44 wants to merge 2 commits into
trinodb:masterfrom
JohnFitzpatrick44:jcf/refactor-cred-handling

Conversation

@JohnFitzpatrick44
Copy link
Copy Markdown
Member

Description

This PR contains two orthogonal commits:

  • Changing the credentials in SqlStage to be a supplier, so that they can be resolved lazily after stage creation
  • Refactoring the credential cache handling in IcebergMetadata to use a separate provider class

Together, these changes put us in a better position to start handling vended credentials that are vended post-stage creation, e.g. per-split.

Additional context and related issues

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

## Section
* Fix some things. ({issue}`issuenumber`)

@github-actions github-actions Bot added the iceberg Iceberg connector label May 12, 2026
@JohnFitzpatrick44 JohnFitzpatrick44 force-pushed the jcf/refactor-cred-handling branch from 79f10a9 to 9eba7cd Compare May 12, 2026 16:37
Use a Supplier to resolve creds lazily in SqlStage.
This allows the use of creds that are created
post-stage creation, e.g. per-split vended credentials.
Moves the cred cache and related methods to a
separate IcebergTableCredentialsProvider class
to simplify credential handling.
@JohnFitzpatrick44 JohnFitzpatrick44 force-pushed the jcf/refactor-cred-handling branch from 9eba7cd to 5f1607c Compare May 12, 2026 16:48
@losipiuk losipiuk enabled auto-merge May 12, 2026 20:10
Copy link
Copy Markdown
Member

@losipiuk losipiuk left a comment

Choose a reason for hiding this comment

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

LGTM

@losipiuk losipiuk added this pull request to the merge queue May 12, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 12, 2026
@losipiuk losipiuk added this pull request to the merge queue May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed iceberg Iceberg connector

Development

Successfully merging this pull request may close these issues.

2 participants