Skip to content

Fix azure init params - #105302

Merged
scanhex12 merged 1 commit into
ClickHouse:masterfrom
scanhex12:fix_azure
May 20, 2026
Merged

scanhex12 merged 1 commit into
ClickHouse:masterfrom
scanhex12:fix_azure

Conversation

@scanhex12

@scanhex12 scanhex12 commented May 19, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Fix azure init params

Version info

  • Backported to: 26.5.2.19, 26.4.4.22, 26.3.13.20

@clickhouse-gh

clickhouse-gh Bot commented May 19, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [003cd8d]

Summary: ✅


AI Review

Summary

This PR replaces OneLake initialization from setting endpoint.additional_params to setting endpoint.container_already_exists in initializeForOneLake. The change looks directionally correct (it avoids mutating request URL query params with placeholder values), but there is no regression test covering this OneLake-only branch, so the fix is not sufficiently evidenced.

Tests
  • ⚠️ [src/Storages/ObjectStorage/Azure/Configuration.cpp:359] The PR fixes behavior in a dedicated OneLake branch (initializeForOneLake), but no test was added. Please add a focused test in src/Storages/tests/gtest_azure_configuration.cpp that exercises setInitializationAsOneLake + fromAST and asserts container_already_exists == true and additional_params.empty().
Final Verdict
  • Status: ⚠️ Request changes
  • Minimum required actions:
  1. Add a focused regression test for the OneLake initialization path proving this fix.

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label May 19, 2026
fillBlobsFromURLCommon(connection_url, ".com", ".dfs.fabric.microsoft.com");

connection_params.endpoint.additional_params = "resource=REDACTED&directory=REDACTED&recursive=REDACTED";
connection_params.endpoint.container_already_exists = true;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please add a focused regression test for this OneLake path in src/Storages/tests/gtest_azure_configuration.cpp.

This fix changes initializeForOneLake from mutating endpoint.additional_params to setting endpoint.container_already_exists. Without a test, this can silently regress again because the OneLake branch is separate from the regular fromAST flow and currently uncovered.

A minimal test would call setInitializationAsOneLake, parse a one-argument azureBlobStorage(...)/Iceberg-on-OneLake path, and assert that container_already_exists is true and additional_params stays empty.

@clickhouse-gh

clickhouse-gh Bot commented May 19, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 84.10% 84.00% -0.10%
Functions 91.40% 91.40% +0.00%
Branches 76.50% 76.50% +0.00%

Changed lines: 0.00% (0/4) · Uncovered code

Full report · Diff report

@scanhex12 scanhex12 self-assigned this May 19, 2026
@scanhex12
scanhex12 enabled auto-merge May 19, 2026 15:52
@scanhex12
scanhex12 added this pull request to the merge queue May 20, 2026
@scanhex12
scanhex12 removed this pull request from the merge queue due to a manual request May 20, 2026
@scanhex12
scanhex12 added this pull request to the merge queue May 20, 2026
Merged via the queue into ClickHouse:master with commit dbb574a May 20, 2026
165 checks passed
@scanhex12
scanhex12 deleted the fix_azure branch May 20, 2026 10:43
@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-synced-to-cloud The PR is synced to the cloud repo label May 20, 2026
@asya-ch asya-ch added the pr-must-backport Pull request should be backported intentionally. Use this label with great care! label May 29, 2026
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label May 29, 2026
robot-clickhouse added a commit that referenced this pull request May 29, 2026
Cherry pick #105302 to 26.3: Fix azure init params
robot-clickhouse added a commit that referenced this pull request May 29, 2026
Cherry pick #105302 to 26.4: Fix azure init params
robot-clickhouse added a commit that referenced this pull request May 29, 2026
Cherry pick #105302 to 26.5: Fix azure init params
alexey-milovidov added a commit that referenced this pull request May 31, 2026
alexey-milovidov added a commit that referenced this pull request May 31, 2026
alexey-milovidov added a commit that referenced this pull request May 31, 2026
DavidHe-2008 pushed a commit to DavidHe-2008/ClickHouse that referenced this pull request Jun 1, 2026
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Jun 1, 2026
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants