Skip to content

Commit 4197992

Browse files
authored
[Documentation] Remove METRIC_VIEW from sql_table resource (#5135)
## Changes <!-- Summary of your changes that are easy to understand --> Remove mention of METRIC_VIEW. This is causing confusion. From Daniel: The `databricks_sql_table` resource is able to manage the lifecycle of tables (managed and external) and views. The docs erroneously included metric views. We've chosen deliberately not to support metric views due to the existing challenges in supporting tables/views across SQL DDL and TF semantics. ## Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> N/A
1 parent d3c5f73 commit 4197992

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NEXT_CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
* Add documentation on the `service_principal_client_id` attribute of `databricks_app` and related [#5134](https://github.com/databricks/terraform-provider-databricks/pull/5134)
1818
### Exporter
19+
* Remove `METRIC_VIEW` from `sql_table` resource ([#5135](https://github.com/databricks/terraform-provider-databricks/pull/5135))
1920

2021
### Internal Changes
2122

docs/resources/sql_table.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ The following arguments are supported:
174174
* `name` - Name of table relative to parent catalog and schema. Change forces the creation of a new resource.
175175
* `catalog_name` - Name of parent catalog. Change forces the creation of a new resource.
176176
* `schema_name` - Name of parent Schema relative to parent Catalog. Change forces the creation of a new resource.
177-
* `table_type` - Distinguishes a view vs. managed/external Table. `MANAGED`, `EXTERNAL`, `METRIC_VIEW` or `VIEW`. Change forces the creation of a new resource.
177+
* `table_type` - Distinguishes a view vs. managed/external Table. `MANAGED`, `EXTERNAL` or `VIEW`. Change forces the creation of a new resource.
178178
* `storage_location` - (Optional) URL of storage location for Table data (required for EXTERNAL Tables). Not supported for `VIEW` or `MANAGED` table_type.
179179
* `data_source_format` - (Optional) External tables are supported in multiple data source formats. The string constants identifying these formats are `DELTA`, `CSV`, `JSON`, `AVRO`, `PARQUET`, `ORC`, and `TEXT`. Change forces the creation of a new resource. Not supported for `MANAGED` tables or `VIEW`.
180180
* `view_definition` - (Optional) SQL text defining the view (for `table_type == "VIEW"`). Not supported for `MANAGED` or `EXTERNAL` table_type.

0 commit comments

Comments
 (0)