Skip to content

[ISSUE] Issue with databricks_catalog resource - uppercase letter in name #4971

@gdubya

Description

@gdubya

Tried to create a databricks_catalog resource in the name contained an uppercase letter. Applying the plan failed.

Configuration

Plan:

  + resource "databricks_catalog" "team_database-Oracle_prod" {
      + comment                        = "team connection to Oracle database"
      + connection_name                = "team_database-Oracle_prod"
      + enable_predictive_optimization = (known after apply)
      + force_destroy                  = false
      + id                             = (known after apply)
      + isolation_mode                 = "ISOLATED"
      + metastore_id                   = (known after apply)
      + name                           = "team_database-Oracle_prod"
      + options                        = {
          + "service_name" = "SV1P"
        }
      + owner                          = (known after apply)
    }

Expected Behavior

Catalog should be created

Actual Behavior

╷
│ Error: Provider produced inconsistent final plan
│ 
│ When expanding the plan for
│ module.data_team_setup[0].module.databricks_workspace[0].databricks_catalog.team_database-Oracle_prod
│ to include new values learned so far during apply, provider
│ "registry.terraform.io/databricks/databricks" produced an invalid new value
│ for .connection_name: was cty.StringVal("team_database-Oracle_prod"), but
│ now cty.StringVal("team_database-oracle_prod").
│ 
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵

Steps to Reproduce

Terraform and provider versions

databricks/databricks v1.87.1

Is it a regression?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    suppress diffissue related to configuration drift, most likely from Cluster Manager

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions