You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add interactive warehouse picker for templates that make use of SQL warehouses (#4170)
## Summary
This adds an interactive warehouse picker + default warehouse support
for templates that make use of a warehouse option:
<img width="617" height="268" alt="image"
src="https://github.com/user-attachments/assets/b82a955d-f10a-4e1d-be93-8d90069146e1"
/>
Note that this PR doesn't change the interface of existing templates: we
keep using `http_path` as the property name for warehouses to maintain
compatibility in the workspace and any client tools that depend on that
name. The property just has a new `"format": "warehouse_path"` setting
that describes the new behavior.
## Test plan
- [x] Unit tests pass
- [x] Acceptance tests updated and pass
- [x] `make lint` and `make fmt` pass
- [x] Manual testing of `databricks bundle init` with SQL templates
Copy file name to clipboardExpand all lines: libs/template/templates/dbt-sql/databricks_template_schema.json
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -11,10 +11,9 @@
11
11
},
12
12
"http_path": {
13
13
"type": "string",
14
-
"pattern": "^/sql/.\\../warehouses/[a-z0-9]+$",
15
-
"pattern_match_failure_message": "Path must be of the form /sql/1.0/warehouses/<warehouse id>",
16
-
"description": "\nPlease provide the HTTP Path of the SQL warehouse you would like to use with dbt during development.\nYou can find this path by clicking on \"Connection details\" for your SQL warehouse.\nhttp_path [example: /sql/1.0/warehouses/abcdef1234567890]",
17
-
"order": 2
14
+
"description": "\nSelect a SQL warehouse to use during development (you can change this in databricks.yml later).",
0 commit comments