Skip to content

feat: support deltalake azure hierarchical namespace folders - #7089

Merged
achettyiitr merged 10 commits into
masterfrom
harness/INT-6150-feat-support-deltalake-azure-hierar-ve15
Jun 22, 2026
Merged

achettyiitr merged 10 commits into
masterfrom
harness/INT-6150-feat-support-deltalake-azure-hierar-ve15

Conversation

@rudder-devbox

@rudder-devbox rudder-devbox Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Description

Use the Databricks Delta Lake enableHierarchicalNamespace destination config to generate Azure load folders as abfss://<container>@<account>.dfs.core.windows.net/<path> only when explicitly enabled. Default Azure Blob behavior remains wasbs://<container>@<account>.blob.core.windows.net/<path>.

Added unit coverage for default Azure and hierarchical namespace paths, plus integration test support through DATABRICKS_HIERARCHICAL_INTEGRATION_TEST_CREDENTIALS and a Hierarchical Namespace Merge Mode event-flow case.

Linear Ticket

INT-6150

Validation

  • git diff --check
  • go test ./warehouse/utils -run TestGetObjectFolderForDeltalake
  • go test ./warehouse/integrations/deltalake -run TestIntegration
  • env -u DATABRICKS_INTEGRATION_TEST_CREDENTIALS -u DATABRICKS_HIERARCHICAL_INTEGRATION_TEST_CREDENTIALS SLOW=1 go test ./warehouse/integrations/deltalake -run TestIntegration

Notes

  • The actual hierarchical Databricks integration flow was not run because DATABRICKS_HIERARCHICAL_INTEGRATION_TEST_CREDENTIALS is not set.
  • The hierarchical integration config still passes Azure accountName, containerName, and accountKey for Rudder staging upload; the generated Databricks COPY load folder is the abfss path.

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

⚠️ Auto-review unresolved

Adversarial review left blocking findings the harness could not resolve within the iteration budget. Please address these before merging.

  • medium: Hierarchical integration credentials cannot exercise the access-keyless Azure path — warehouse/integrations/deltalake/deltalake_test.go:346

@rudder-devbox

rudder-devbox Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor Author

👋 I'm rudder-devbox. I opened this PR from a Linear ticket.

Leave an inline comment on the diff — pick a line, add your comment, and
I'll pick it up. No @rudder-devbox mention needed on inline comments; every
inline thread on this PR is something I'll address.

Top-level PR comments need @rudder-devbox. Comment @rudder-devbox <what you want>
on the PR (the top-level conversation, not on a code line) and I'll act on it.
Without the mention I won't see it.

Comment thread .github/workflows/tests.yaml Dismissed
@achettyiitr
achettyiitr force-pushed the harness/INT-6150-feat-support-deltalake-azure-hierar-ve15 branch from 98a7112 to 4d4ebb5 Compare June 16, 2026 09:06
🔒 Scanned for secrets using gitleaks 8.29.1
@achettyiitr
achettyiitr force-pushed the harness/INT-6150-feat-support-deltalake-azure-hierar-ve15 branch from 4d4ebb5 to 1a0f769 Compare June 16, 2026 09:21
@achettyiitr
achettyiitr requested a review from krishna2020 June 16, 2026 09:24
@achettyiitr achettyiitr self-assigned this Jun 16, 2026
@achettyiitr
achettyiitr marked this pull request as ready for review June 16, 2026 09:24
@codecov

codecov Bot commented Jun 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.48%. Comparing base (b5435ba) to head (90cd915).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7089      +/-   ##
==========================================
- Coverage   79.90%   79.48%   -0.42%     
==========================================
  Files         583      583              
  Lines       65273    65280       +7     
==========================================
- Hits        52155    51890     -265     
- Misses      10016    10299     +283     
+ Partials     3102     3091      -11     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@krishna2020

Copy link
Copy Markdown
Contributor

Code review — feat: support deltalake azure hierarchical namespace folders

Production code looks sound: the URI-scheme switch (wasbs:// → abfss:///dfs.core.windows.net) is the right mechanism for ADLS Gen2 (Databricks resolves Azure creds cluster-side), GetBoolDestinationConfig defaults to false so existing destinations stay on wasbs:// (backward compatible), and the t.Run(input.provider→input.name) rename correctly avoids a duplicate-subtest-name collision. All findings below are in the test layer.

1. New secret gates ALL existing deltalake integration tests (deltalake_test.go:81)

Adding testHierarchicalNamespaceKey to the required-env-var loop means every pre-existing test (Merge Mode, Append Mode, Parquet, …) now skips whenever DATABRICKS_HIERARCHICAL_NAMESPACE_INTEGRATION_TEST_CREDENTIALS is absent — and under FORCE_RUN_INTEGRATION_TESTS=true it t.Fatalfs. Previously only the base secret was required. In any environment that has the base secret but not the new one, the whole suite silently loses coverage.

Suggestion: require only the base key globally; skip just the Hierarchical Namespace Merge Mode subtest when its creds are missing.

2. Wrong config key in Append Mode override (deltalake_test.go:274)

"useHierarchicalNamespace": false,

The registered setting is enableHierarchicalNamespace (see settings.go / model.EnableHierarchicalNamespaceSetting). useHierarchicalNamespace is never read, so this override is a silent no-op — the case passes only because false is the default and wouldn't catch a future default flip. Should be "enableHierarchicalNamespace": false.

3. Reversed require.Equal args (utils_test.go:564) — minor

require.Equal(t, objectFolder, input.objectFolder)

testify expects require.Equal(t, expected, actual); here actual is passed as expected. Pass/fail is unaffected, but failure diffs are mislabeled. Pre-existing (also line 521), re-exposed by the new abfss case.


🤖 Generated with Claude Code

Comment thread warehouse/utils/utils.go Resolved
Comment thread warehouse/utils/utils_test.go Resolved
@rudder-devbox

rudder-devbox Bot commented Jun 20, 2026

Copy link
Copy Markdown
Contributor Author

The CI failure was a lint error from golangci-lint/staticcheck: warehouse/integrations/deltalake/deltalake.go:1023:9: ST1005: error strings should not be capitalized, pointing at the new Azure Blob HNS error message that started with Azure Blob....

I fixed the error text to start lowercase while keeping the same Databricks/Azure context, then validated with:

  • git diff --check
  • go test ./warehouse/integrations/deltalake -run TestIntegration
  • golangci-lint v2.9.0 run -v ./warehouse/integrations/deltalake/...

Pushed commit: bd75b5d

rudder-devbox and others added 2 commits June 20, 2026 10:29
🔒 Scanned for secrets using gitleaks 8.29.1
@achettyiitr
achettyiitr force-pushed the harness/INT-6150-feat-support-deltalake-azure-hierar-ve15 branch from 0dec1ed to c2296c5 Compare June 21, 2026 14:33
@achettyiitr
achettyiitr requested a review from krishna2020 June 21, 2026 14:43
🔒 Scanned for secrets using gitleaks 8.29.1
@achettyiitr
achettyiitr force-pushed the harness/INT-6150-feat-support-deltalake-azure-hierar-ve15 branch from 310147d to 90cd915 Compare June 21, 2026 14:51
@achettyiitr
achettyiitr merged commit 2f5c614 into master Jun 22, 2026
73 checks passed
@achettyiitr
achettyiitr deleted the harness/INT-6150-feat-support-deltalake-azure-hierar-ve15 branch June 22, 2026 12:08
atzoum added a commit that referenced this pull request Jun 23, 2026
# Description

Syncing release v1.78.0 to main branch

**WARNING: Do NOT rewrite git history and ALWAYS use a "Merge Commit"
for merging!**

**↓↓ Please review and edit commit overrides before merging ↓↓**

BEGIN_COMMIT_OVERRIDE
feat: support deltalake azure hierarchical namespace folders (#7089)
chore(jobsdb): new columns for multi-consumer jobsdb (#7082)
fix: panic in user transformer client due to timeout doesn't get
recorded by alerts (#7116)
chore(jobsdb): multi-consumer-specific indexes and views (#7093)
END_COMMIT_OVERRIDE
This was referenced Jun 29, 2026
atzoum pushed a commit that referenced this pull request Jun 29, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.79.0-rc.1](v1.78.0...v1.79.0-rc.1)
(2026-06-29)


### Features

* support compressing payloads in reporting client
([#7124](#7124))
([365b530](365b530))
* support deltalake azure hierarchical namespace folders
([#7089](#7089))
([61b41e4](61b41e4))


### Bug Fixes

* panic in user transformer client due to timeout doesn't get recorded
by alerts
([#7116](#7116))
([61b41e4](61b41e4))
* partition migration restarts server on slow in-progress wait
([#7129](#7129))
([d63d597](d63d597))


### Miscellaneous

* **jobsdb:** capturing multi-consumer pending events
([#7121](#7121))
([dc382f7](dc382f7))
* **jobsdb:** cleanup legacy configuration flags
([#7122](#7122))
([58778d5](58778d5))
* **jobsdb:** multi-consumer compaction
([#7096](#7096))
([57f1ef5](57f1ef5))
* **jobsdb:** multi-consumer get and noresults cache handling
([#7095](#7095))
([9d5c58a](9d5c58a))
* **jobsdb:** multi-consumer get distinct consumers
([#7097](#7097))
([f68a56d](f68a56d))
* **jobsdb:** multi-consumer partition migration
([#7098](#7098))
([9cda68d](9cda68d))
* **jobsdb:** multi-consumer-specific indexes and views
([#7093](#7093))
([61b41e4](61b41e4))
* **jobsdb:** multiconsumer flip, registry table and unionjobsdb
([#7094](#7094))
([9eff2e9](9eff2e9))
* **jobsdb:** new columns for multi-consumer jobsdb
([#7082](#7082))
([61b41e4](61b41e4))
* recreate stale rsources subscription on shared db
([#7108](#7108))
([c59e9e5](c59e9e5))
* use priority pool at migration start while polling for pending jobs
([#7128](#7128))
([254ae15](254ae15))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
This was referenced Jun 29, 2026
atzoum pushed a commit that referenced this pull request Jun 29, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.79.0-rc.2](v1.78.0...v1.79.0-rc.2)
(2026-06-29)


### Features

* support compressing payloads in reporting client
([#7124](#7124))
([365b530](365b530))
* support deltalake azure hierarchical namespace folders
([#7089](#7089))
([61b41e4](61b41e4))


### Bug Fixes

* **jobsdb:** compaction panics with pq error column js.consumer does
not exist at position
([#7133](#7133))
([f392a53](f392a53))
* panic in user transformer client due to timeout doesn't get recorded
by alerts
([#7116](#7116))
([61b41e4](61b41e4))
* partition migration restarts server on slow in-progress wait
([#7129](#7129))
([d63d597](d63d597))


### Miscellaneous

* **jobsdb:** capturing multi-consumer pending events
([#7121](#7121))
([dc382f7](dc382f7))
* **jobsdb:** cleanup legacy configuration flags
([#7122](#7122))
([58778d5](58778d5))
* **jobsdb:** multi-consumer compaction
([#7096](#7096))
([57f1ef5](57f1ef5))
* **jobsdb:** multi-consumer get and noresults cache handling
([#7095](#7095))
([9d5c58a](9d5c58a))
* **jobsdb:** multi-consumer get distinct consumers
([#7097](#7097))
([f68a56d](f68a56d))
* **jobsdb:** multi-consumer partition migration
([#7098](#7098))
([9cda68d](9cda68d))
* **jobsdb:** multi-consumer-specific indexes and views
([#7093](#7093))
([61b41e4](61b41e4))
* **jobsdb:** multiconsumer flip, registry table and unionjobsdb
([#7094](#7094))
([9eff2e9](9eff2e9))
* **jobsdb:** new columns for multi-consumer jobsdb
([#7082](#7082))
([61b41e4](61b41e4))
* recreate stale rsources subscription on shared db
([#7108](#7108))
([c59e9e5](c59e9e5))
* use priority pool at migration start while polling for pending jobs
([#7128](#7128))
([254ae15](254ae15))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
atzoum pushed a commit that referenced this pull request Jun 30, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.79.0](v1.78.0...v1.79.0)
(2026-06-29)


### Features

* support compressing payloads in reporting client
([#7124](#7124))
([365b530](365b530))
* support deltalake azure hierarchical namespace folders
([#7089](#7089))
([61b41e4](61b41e4))


### Bug Fixes

* **jobsdb:** compaction panics with pq error column js.consumer does
not exist at position
([#7133](#7133))
([f392a53](f392a53))
* panic in user transformer client due to timeout doesn't get recorded
by alerts
([#7116](#7116))
([61b41e4](61b41e4))
* partition migration restarts server on slow in-progress wait
([#7129](#7129))
([d63d597](d63d597))


### Miscellaneous

* **jobsdb:** capturing multi-consumer pending events
([#7121](#7121))
([dc382f7](dc382f7))
* **jobsdb:** cleanup legacy configuration flags
([#7122](#7122))
([58778d5](58778d5))
* **jobsdb:** multi-consumer compaction
([#7096](#7096))
([57f1ef5](57f1ef5))
* **jobsdb:** multi-consumer get and noresults cache handling
([#7095](#7095))
([9d5c58a](9d5c58a))
* **jobsdb:** multi-consumer get distinct consumers
([#7097](#7097))
([f68a56d](f68a56d))
* **jobsdb:** multi-consumer partition migration
([#7098](#7098))
([9cda68d](9cda68d))
* **jobsdb:** multi-consumer-specific indexes and views
([#7093](#7093))
([61b41e4](61b41e4))
* **jobsdb:** multiconsumer flip, registry table and unionjobsdb
([#7094](#7094))
([9eff2e9](9eff2e9))
* **jobsdb:** new columns for multi-consumer jobsdb
([#7082](#7082))
([61b41e4](61b41e4))
* recreate stale rsources subscription on shared db
([#7108](#7108))
([c59e9e5](c59e9e5))
* use priority pool at migration start while polling for pending jobs
([#7128](#7128))
([254ae15](254ae15))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
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.

4 participants