Skip to content
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_sql_table resource #4421

Open
ian-norris-ncino opened this issue Jan 21, 2025 · 1 comment
Open

[ISSUE] Issue with databricks_sql_table resource #4421

ian-norris-ncino opened this issue Jan 21, 2025 · 1 comment

Comments

@ian-norris-ncino
Copy link

ian-norris-ncino commented Jan 21, 2025

Configuration

resource "databricks_sql_table" "example_table" {
  name         = local.example_table_name
  catalog_name = var.example_catalog.name
  schema_name  = example_catalog.example_schema.name
  table_type   = "MANAGED"
  warehouse_id = data.databricks_sql_warehouse.warehouse.id
  comment      = "Example resource"
  owner        = var.resource_owner_name

  properties = {
    "delta.feature.allowColumnDefaults" = "supported"
  }

  column {
    name     = "column_a"
    type     = "STRING"
    comment  = ""
    nullable = false
  }
  column {
    name     = "column_b"
    type     = "TIMESTAMP DEFAULT current_timestamp()"
    comment  = ""
    nullable = false
  }
}

Expected Behavior

When I apply the first time the table is created successfully. When I plan/apply a second time with the same configuration no changes should be detected.

Actual Behavior

When I apply the first time the table is created successfully. However, a follow up plan/apply will yield the error changing the 'type' of an existing column is not supported.

Steps to Reproduce

terraform version
Terraform v1.10.4
on darwin_arm64
+ provider registry.terraform.io/databricks/databricks v1.63.0

Is it a regression?

Nope

Debug Output

Important Factoids

Would you like to implement a fix?

Maybe if I have time

@ian-norris-ncino ian-norris-ncino changed the title [ISSUE] Issue with databricks_XXX resource [ISSUE] Issue with databricks_sql_table resource Jan 21, 2025
@ian-norris-ncino
Copy link
Author

Put up a pr here #4422

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant