-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ISSUE] Issue with databricks_share
update detection
#2167
Comments
databricks_XXX
resourcedatabricks_share
update detection
The workaround is to explicitly specify |
Re-opening because we observe the issue still persists after the fix in #2197. Here's another example of the current behavior: Deleting table A from from:
to:
Expected terraform plan:
Actual terraform plan: Change table A to table B and delete table B.
This plan will result in failure because changing The root cause is that terraform is not able to identify the same object, which leads to object mismatch and incorrect plan. |
@nkvuong Could you take another look of this issue and see if it's possible to fix? We (system table team) are using delta sharing through terraform extensively, and this issue makes it hard to deploy any share changes. Thanks. |
Configuration
Adding a new
object
to adatabricks_share
resource e.g.->
Expected Behavior
Object for
main.foo.table_B
is added to the shareActual Behavior
Apply fails with
cannot update share: Shared Table 'foo.table_C' already exists
When explicitly providing
shared_as
both before and after adding new object, it works.Most likely
terraform-provider-databricks/catalog/resource_share.go
Line 152 in 0693e4c
Steps to Reproduce
Terraform and provider versions
1.10.0
Debug Output
Important Factoids
The text was updated successfully, but these errors were encountered: