Skip to content

Added support for creating SQL warehouses in DABs - #3129

Merged
andrewnester merged 25 commits into
mainfrom
feature/sql-warehouse
Jul 16, 2025
Merged

Added support for creating SQL warehouses in DABs#3129
andrewnester merged 25 commits into
mainfrom
feature/sql-warehouse

Conversation

@andrewnester

Copy link
Copy Markdown
Contributor

Changes

Added support for creating SQL warehouses in DABs

Why

SQL warehouses are commonly used and supporting them in DABs allows for even better automation.

Tests

Added acceptance tests

Comment threadacceptance/bundle/deploy/sql_warehouse/test.toml Outdated
@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Jul 2, 2025

Copy link
Copy Markdown
Collaborator

Run: 16319495265

Env✅‌pass🔄‌flaky🙈‌skip
✅‌aws linux302426
✅‌aws windows303425
🔄‌aws-ucws linux4008326
🔄‌aws-ucws windows4009325
✅‌azure linux302425
✅‌azure windows303424
✅‌azure-ucws linux410323
✅‌azure-ucws windows411322
✅‌gcp linux301427
✅‌gcp windows302426
9 failing tests:
Test Nameaws-ucws linuxaws-ucws windows
TestAccept/bundle/deploy/dashboard/detect-change🔄‌flaky🔄‌flaky
TestAccept/bundle/deploy/dashboard/nested-folders🔄‌flaky🔄‌flaky
TestAccept/bundle/deploy/dashboard/simple🔄‌flaky🔄‌flaky
TestAccept/bundle/deploy/dashboard/simple_outside_bundle_root🔄‌flaky🔄‌flaky
TestAccept/bundle/deploy/dashboard/simple_syncroot🔄‌flaky🔄‌flaky
TestAccept/bundle/deployment/bind/dashboard🔄‌flaky🔄‌flaky
TestAccept/bundle/deployment/bind/dashboard/recreation🔄‌flaky🔄‌flaky
TestDashboardAssumptions_WorkspaceImport🔄‌flaky🔄‌flaky
TestFetchRepositoryInfoAPI_FromRepo✅‌pass🔄‌flaky

@shreyas-goenkashreyas-goenka left a comment

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.

Thanks! Few comments, but everything else looks good to me.

Comment threadbundle/config/resources/sql_warehouses.go
Comment threadbundle/internal/schema/annotations.yml Outdated
Comment threadbundle/terranova/tnresources/sql_warehouse.go Outdated
Comment threadlibs/testserver/sql_warehouses.go Outdated
Comment threadlibs/testserver/sql_warehouses.go Outdated
}
}

func (s *FakeWorkspace) SqlDataSourcesList(req Request) Response {

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.

Where do these API calls come from? Terraform? This is a legacy version of the list warehouse API.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Yes, this comes from terraform now

Comment threadbundle/terranova/tnresources/sql_warehouse.go
Comment threadbundle/config/resources/sql_warehouses.go
Comment threadbundle/config/resources/sql_warehouses.go Outdated
Comment threadbundle/internal/schema/annotations_openapi.yml Outdated
Comment threadbundle/internal/schema/annotations_openapi.yml
Comment threadbundle/terranova/tnresources/sql_warehouse.go
testStruct(t,
reflect.TypeOf(config.Root{}),
3500, 3600, // 3516 at this time
3600, 3700, // 3625 at this time

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 test should be updated to not require some arbitrary bounds update every so often (not this PR).

@shreyas-goenkashreyas-goenka left a comment

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.

Thanks! Please take a look at the one comment.

Comment threadbundle/internal/schema/annotations_openapi.yml
"description": |-
The SQL warehouse definitions for the bundle, where each key is the name of the warehouse.
"markdown_description": |-
The SQL warehouse definitions for the bundle, where each key is the name of the warehouse. See [\_](/dev-tools/bundles/resources.md#sql_warehouses).

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.

Can you make sure to work with Julia to get this section added to the docs?

@andrewnester
andrewnester added this pull request to the merge queueJul 16, 2025
Merged via the queue into main with commit 75838aaJul 16, 2025
13 checks passed
@andrewnester
andrewnester deleted the feature/sql-warehouse branch July 16, 2025 13:31
deco-sdk-taggingBot added a commit that referenced this pull request Jul 16, 2025
## Release v0.260.0
### Notable Changes
* Added support for creating SQL warehouses in DABs ([#3129](#3129))
### Dependency updates
* Upgrade Go SDK to 0.75.0 ([#3256](#3256))
### CLI
* Add `databricks psql` command to connect to Lakebase with a single command ([#3128](#3128))
### Bundles
* Jobs that use cluster policy default values for their cluster configuration now correctly update those defaults on every deployment ([#3255](#3255)).
* Add upper and lower helper methods for bundle templates ([#3242](#3242))
denik pushed a commit that referenced this pull request May 20, 2026
## Changes
Added support for creating SQL warehouses in DABs
## Why
SQL warehouses are commonly used and supporting them in DABs allows for
even better automation.
## Tests
Added acceptance tests
<!-- If your PR needs to be included in the release notes for next
release,
add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->
denik pushed a commit that referenced this pull request May 20, 2026
## Release v0.260.0
### Notable Changes
* Added support for creating SQL warehouses in DABs ([#3129](#3129))
### Dependency updates
* Upgrade Go SDK to 0.75.0 ([#3256](#3256))
### CLI
* Add `databricks psql` command to connect to Lakebase with a single command ([#3128](#3128))
### Bundles
* Jobs that use cluster policy default values for their cluster configuration now correctly update those defaults on every deployment ([#3255](#3255)).
* Add upper and lower helper methods for bundle templates ([#3242](#3242))
Sign up for freeto 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.

5 participants

@andrewnester@eng-dev-ecosystem-bot@pietern@denik@shreyas-goenka