Skip to content

Commit 2bbf251

Browse files
authored
[Fix] Mark unity_catalog_provisioning_state as ReadOnly (#4116)
## Changes <!-- Summary of your changes that are easy to understand --> In a recent update to the GoSDK, a new field called `unity_catalog_provisioning_state` was added. This field changes values based on server decisions, so it's supposed to be marked as computed. This pull request sorts out that issue. ## Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> - [ ] `make test` run locally - [ ] relevant change in `docs/` folder - [ ] covered with integration tests in `internal/acceptance` - [ ] relevant acceptance tests are passing - [ ] using Go SDK Co-authored-by: Omer Lachish <[email protected]>
1 parent 908981c commit 2bbf251

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

catalog/resource_online_table.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ func ResourceOnlineTable() common.Resource {
5959
common.CustomizeSchemaPath(m, "spec", "source_table_full_name").SetCustomSuppressDiff(common.EqualFoldDiffSuppress)
6060
common.CustomizeSchemaPath(m, "name").SetRequired().SetForceNew()
6161
common.CustomizeSchemaPath(m, "status").SetReadOnly()
62+
common.CustomizeSchemaPath(m, "unity_catalog_provisioning_state").SetReadOnly()
6263
common.CustomizeSchemaPath(m, "table_serving_url").SetReadOnly()
6364
common.CustomizeSchemaPath(m, "spec", "pipeline_id").SetReadOnly()
6465

docs/resources/online_table.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ In addition to all arguments above, the following attributes are exported:
4949
* `detailed_state` - The state of the online table.
5050
* `message` - A text description of the current state of the online table.
5151
* `table_serving_url` - Data serving REST API URL for this table.
52+
* `unity_catalog_provisioning_state` - The provisioning state of the online table entity in Unity Catalog. This is distinct from the state of the data synchronization pipeline (i.e. the table may be in "ACTIVE" but the pipeline may be in "PROVISIONING" as it runs asynchronously).
5253

5354
## Import
5455

0 commit comments

Comments
 (0)