Skip to content

Commit df13b1d

Browse files
authored
[Documentation] Deprecate databricks_sql_visualization and databricks_sql_widget resource. (#4924)
## Changes <!-- Summary of your changes that are easy to understand --> These resources are deprecated. ## Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> Existing tests
1 parent 736679a commit df13b1d

File tree

5 files changed

+10
-1
lines changed

5 files changed

+10
-1
lines changed

NEXT_CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
### Documentation
1414

1515
* Document `email_notifications` block in model serving resources ([#4910](https://github.com/databricks/terraform-provider-databricks/pull/4910))
16+
* Deprecate `databricks_sql_visualization` and `databricks_sql_widget` resource. ([#4924](https://github.com/databricks/terraform-provider-databricks/pull/4924))
1617

1718
### Exporter
1819

docs/resources/sql_visualization.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ subcategory: "Databricks SQL"
33
---
44
# databricks_sql_visualization Resource
55

6+
!> This resource is deprecated and will be removed in future.
7+
8+
-> Please switch to [databricks_dashboard](dashboard.md) to author new AI/BI dashboards using the latest tooling
9+
610
To manage [SQLA resources](https://docs.databricks.com/sql/get-started/concepts.html) you must have `databricks_sql_access` on your [databricks_group](group.md#databricks_sql_access) or [databricks_user](user.md#databricks_sql_access).
711

812
-> documentation for this resource is a work in progress.
@@ -61,7 +65,7 @@ If you have lots of visualizations to declare, it might be cleaner to separate t
6165
```
6266

6367
- resource definitions
64-
68+
6569
```hcl
6670
##q1vx.tf
6771

docs/resources/sql_widget.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ subcategory: "Databricks SQL"
33
---
44
# databricks_sql_widget Resource
55

6+
!> This resource is deprecated and will be removed in future.
7+
68
-> Please switch to [databricks_dashboard](dashboard.md) to author new AI/BI dashboards using the latest tooling
79

810
To manage [SQL resources](https://docs.databricks.com/sql/get-started/concepts.html) you must have `databricks_sql_access` on your [databricks_group](group.md#databricks_sql_access) or [databricks_user](user.md#databricks_sql_access).

sql/resource_sql_visualization.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ func ResourceSqlVisualization() common.Resource {
160160
})
161161

162162
return common.Resource{
163+
DeprecationMessage: "This resource is deprecated and will be removed in future. Please switch to databricks_dashboard to author new AI/BI dashboards using the latest tooling.",
163164
Create: func(ctx context.Context, data *schema.ResourceData, c *common.DatabricksClient) error {
164165
var v VisualizationEntity
165166
av, err := v.toAPIObject(s, data)

sql/resource_sql_widget.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ func ResourceSqlWidget() common.Resource {
272272
})
273273

274274
return common.Resource{
275+
DeprecationMessage: "This resource is deprecated and will be removed in future. Please switch to databricks_dashboard to author new AI/BI dashboards using the latest tooling.",
275276
Create: func(ctx context.Context, data *schema.ResourceData, c *common.DatabricksClient) error {
276277
var w WidgetEntity
277278
aw, err := w.toAPIObject(s, data)

0 commit comments

Comments
 (0)