Skip to content

Azure delta kernel - #102202

Merged
SmitaRKulkarni merged 60 commits into
masterfrom
Azure_delta_kernel
Apr 13, 2026
Merged

SmitaRKulkarni merged 60 commits into
masterfrom
Azure_delta_kernel

Conversation

@SmitaRKulkarni

@SmitaRKulkarni SmitaRKulkarni commented Apr 9, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Experimental Feature

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

Support DataLake on top of Azure with Delta Kernel resolves #78963

cc @alesapin @kssenii

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.4.1.891

SmitaRKulkarni and others added 30 commits September 9, 2025 14:47
…is false as appending it to url is managed by add_account_name_to_url
@clickhouse-gh

clickhouse-gh Bot commented Apr 9, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [166c8e6]

Summary: ❌

job_name test_name status info comment
Stateless tests (amd_tsan, flaky check) failure
02493_max_streams_for_merge_tree_reading FAIL cidb, issue ISSUE EXISTS
Stateless tests (amd_msan, flaky check) failure
00746_sql_fuzzy FAIL cidb, issue ISSUE CREATED

AI Review

Summary

This PR adds DeltaLakeAzure support in the delta-kernel-rs path by wiring Azure connection parameters from object storage/configuration into AzureKernelHelper, and updates integration tests for Azure/Azurite paths. High-level verdict: request changes because one authentication path is still unsupported while Azure is globally enabled for delta-kernel.

Missing context
  • ⚠️ I did not analyze full Praktika test logs in depth (only PR metadata and posted inline comments).
Findings
  • ❌ Blockers
    • [src/Storages/ObjectStorage/DataLakes/DeltaLake/KernelHelper.cpp:235-241] DeltaLakeMetadata::isDeltaKernelEnabled now enables the delta-kernel path for Azure, but AzureKernelHelper::createBuilder still throws NOT_IMPLEMENTED for WorkloadIdentityCredential (case 3). With allow_experimental_delta_kernel_rs=1, valid Azure configs using workload identity fail at runtime instead of working or safely falling back.
    • Suggested fix: either implement workload identity mapping for the delta-kernel Azure builder, or gate Azure delta-kernel usage on supported auth methods and fallback to the non-kernel reader for unsupported ones.
Tests
  • ⚠️ Add a coverage case for Azure workload identity with allow_experimental_delta_kernel_rs=1 to ensure behavior is either supported or explicitly falls back without exception.
ClickHouse Rules
Item Status Notes
Deletion logging ➖
Serialization versioning ➖
Core-area scrutiny ✅
No test removal ✅
Experimental gate ✅ Guarded by allow_experimental_delta_kernel_rs.
No magic constants ✅
Backward compatibility ⚠️ Enabling delta-kernel for Azure currently breaks workload identity auth path.
SettingsChangesHistory.cpp ➖
PR metadata quality ✅
Safe rollout ⚠️ Azure rollout is incomplete for one supported auth mode.
Compilation time ✅
No large/binary files ✅
Final Verdict
  • Status: ⚠️ Request changes
  • Minimum required actions:
    • Handle WorkloadIdentityCredential in Azure delta-kernel path, or add auth-aware fallback so this path does not throw for workload identity users.

@clickhouse-gh clickhouse-gh Bot added the pr-experimental Experimental Feature label Apr 9, 2026
break;
}
case 1: /// ClientSecretCredential
case 3: /// WorkloadIdentityCredential

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.

❌ WorkloadIdentityCredential is currently rejected when allow_experimental_delta_kernel_rs = 1.

StorageAzureConfiguration::getAzureConnectionParams sets auth_method to WorkloadIdentityCredential for storage_account_url without explicit account credentials, which maps to variant index 3. In this switch, case 3 falls into default and throws NOT_IMPLEMENTED, so DeltaLakeAzure with workload identity cannot work even though Azure support is enabled.

Please handle case 3 similarly to managed identity (no static key, but keep account name/endpoint options), and add an integration test that enables delta-kernel with storage_account_url + workload identity credentials.

@alexey-milovidov

Copy link
Copy Markdown
Member

The test_database_iceberg_nessie_catalog and test_database_iceberg_lakekeeper_catalog failures in this PR's CI are false positives caused by a bug in PR #100583 (merged to master on 2026-04-09 at 11:19 UTC). That PR broke the metadata file path resolution in getMetadataLocation for Iceberg catalog tests — it produced a doubled S3 key like table_path/warehouse-rest/table_path/metadata/... instead of table_path/metadata/..., causing MinIO to return 403.

The bug was reverted by PR #102247 (merged at ~14:48 UTC). All nessie/lakekeeper test failures between these two merges are unrelated to this PR.

@alexey-milovidov

Copy link
Copy Markdown
Member

The flaky check failure is fixed in #102148, let's update the branch.

@@ -487,9 +494,47 @@ def test_single_log_file(started_cluster, use_delta_kernel, storage_type):
)

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.

⚠️ This PR enables Azure in the delta-kernel-rs path, but the new tests only cover shared-key/connection-string flows. Please add a test for workload identity (client_id + tenant_id) with allow_experimental_delta_kernel_rs=1 (or an explicit fallback assertion) so we don't regress that auth mode silently.

@clickhouse-gh

clickhouse-gh Bot commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 84.00% 84.00% +0.00%
Functions 90.90% 90.90% +0.00%
Branches 76.50% 76.50% +0.00%

Changed lines: 73.27% (159/217) | lost baseline coverage: 2 line(s) · Uncovered code

Full report · Diff report

@SmitaRKulkarni
SmitaRKulkarni added this pull request to the merge queue Apr 13, 2026
Merged via the queue into master with commit a896f3c Apr 13, 2026
161 of 164 checks passed
@SmitaRKulkarni
SmitaRKulkarni deleted the Azure_delta_kernel branch April 13, 2026 15:16
@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Apr 13, 2026
alexey-milovidov added a commit to RinChanNOWWW/ClickHouse that referenced this pull request May 16, 2026


The cache-unwrap fix in `IObjectStorage::getUnderlying` / `assert_cast` is
already in master, so this PR can now be reduced to just the test additions.

See: ClickHouse#102017 (comment)

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
pull Bot pushed a commit to Lobinson1/ClickHouse that referenced this pull request Jun 8, 2026
Adds integration test coverage for using a `cache`-wrapped disk under
the `DeltaLake` and `Iceberg` table engines via `SETTINGS disk = '...'`.
The cache-aware path through `IObjectStorage::getUnderlying` before the
`assert_cast` to `S3ObjectStorage` / `AzureObjectStorage` is already in
master (commit c39f742 and ClickHouse#102202); this PR brings over the tests
from ClickHouse#102017 so the path stays covered.

Tests parameterize `test_single_log_file` / `test_single_iceberg_file` /
`test_many_tables` / `test_cluster_table_function` with
`with_cache=[False, True]`. The `with_cache=True` variant is skipped for
`local` storage since the `cache` disk only wraps object storages.

Original author: @RinChanNOWWW (ClickHouse#102017).

Co-Authored-By: RinChanNOW <[email protected]>
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-experimental Experimental Feature 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.

Support DataLake on top of Azure with Delta-kernel

4 participants