databricks / terraform-provider-databricks

Databricks Terraform Provider
https://registry.terraform.io/providers/databricks/databricks/latest
Other
456 stars 393 forks source link

[ISSUE] Issue with `databricks_sql_table` resource #4192

Open dipanjank opened 2 weeks ago

dipanjank commented 2 weeks ago

Configuration

resource "databricks_sql_table" "internal_orderbook_snapshots" {
  name               = "my_test_table"
  catalog_name       = "dev"
  schema_name        = "silver"
  table_type         = "MANAGED"
  data_source_format = "DELTA"

  column {
    name     = "bids_map"
    type     = "map<double, double>"
    comment  = "bid side of the orderbook as a map. key is price, value is quantity."
    nullable = true
  }

Expected Behavior

Actual Behavior

Error: changing the 'type' of an existing column is not supported
with databricks_sql_table.orderbook_updates_table
on main.tf line 16, in resource "databricks_sql_table" "orderbook_updates_table":
resource "databricks_sql_table" "orderbook_updates_table" {

Steps to Reproduce

  1. terraform apply
  2. terraform plan

Terraform and provider versions

Terraform [v1.9.5] databricks provider is 1.56.0

Is it a regression?

Version 1.52.0 has the same reported behaviour.

Debug Output

Important Factoids

Would you like to implement a fix?

Possibly, but will need some guidance ;)