Repository navigation
Conversation
- fromAST removed extra_credentials from the engine args and never put it back. Those args are the stored table definition, so explicit client_id / tenant_id were lost on detach/attach or restart. Restore them after parsing, as the S3 parser does. - addStructureAndFormatToArgsIfNeededAzure evaluated extra_credentials as a constant expression, which threw when preparing deltaLakeAzureCluster or parallel-replica queries. Take it out during the rewrite and append it back. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Workflow [PR], commit [caed72e] Summary: ❌
AI ReviewSummaryThe PR preserves Azure Missing context / blind spots
Final VerdictStatus: ✅ Approve. No code changes requested; normal CI validation remains pending. |
omar12eladawy
added a commit
to omar12eladawy/ClickHouse
that referenced
this pull request
Oct 30, 2026
The fix that keeps extra_credentials in persisted and rewritten engine args is a pre-existing bug on master and now lives in ClickHouse#127932. Revert it here, together with the reattach test that depends on it. This reverts commits d8b8aa6 and 404d491. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merged
via the queue into
ClickHouse:master
with commit Oct 30, 2026
c759533
176 of 178 checks passed
omar12eladawy
added a commit
to omar12eladawy/ClickHouse
that referenced
this pull request
Oct 30, 2026
Restores 404d491 now that the extra_credentials engine-args fix (ClickHouse#127932) is on master. Parse DeltaLakeAzure engine args with extra_credentials twice, as on create and attach, with conflicting AZURE_CLIENT_ID / AZURE_TENANT_ID in the environment, and check the explicit IDs reach the builder options. Co-Authored-By: Claude Opus 5.5 <[email protected]>
groeneai
added a commit
to groeneai/ClickHouse
that referenced
this pull request
Oct 31, 2026
…age-partition-strategy-key-value Resolve the conflict with ClickHouse#127932, which landed the `extra_credentials` handling of this branch on master: `fromAST` re-appends it through a `SCOPE_EXIT`, and the cluster rewrite sets it aside and appends it back. Take master's version of that code and keep only the key-value `partition_strategy` / `partition_columns_in_data_file` handling on top: - `fromAST`: drop this branch's own re-append of `extra_credentials`, master's `SCOPE_EXIT` already does it (keeping both would append it twice). - cluster rewrite: split the trailing key-value arguments off after master's `extractExtraCredentials`, and insert them back before `extra_credentials`, so the rewritten arguments keep the order positional, key-value, `extra_credentials`. - `gtest_azure_configuration.cpp`: take master's file; its `FromASTKeepsExtraCredentialsInEngineArgs` and `AddStructureAndFormatKeepsExtraCredentials` cover what this branch's `FromASTKeepsExtraCredentialsInTableDefinition` covered. - `TableFunctionObjectStorageCluster.cpp`: take master's file; the `extra_credentials` documentation row is not part of the `partition_strategy` fix. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Related: #112637
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix Azure
extra_credentials(client_id = ..., tenant_id = ...)being lost from the table definition afterDETACH/ATTACHor a server restart, and failing when the arguments are rewritten forazureBlobStorageCluster/ parallel replicas.Details
Split out of #112637 at review request so it can be backported on its own.
AzureStorageParsedArguments::fromASTremovedextra_credentialsfrom the engine args and never put it back. Those args are the persisted table definition, so the explicitclient_id/tenant_idwere gone after a reattach or restart. They are now restored after parsing, as the S3 parser does.addStructureAndFormatToArgsIfNeededAzureevaluatedextra_credentialsas a constant expression, which threw while preparing cluster or parallel-replica queries. It is now taken out during the rewrite and appended back.Both cases are covered by new gtests in
gtest_azure_configuration.cppthat fail on master.cc @SmitaRKulkarni
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/127932]
Version info
26.11.1.919-master(included in26.11and later)