Skip to content

[ISSUE] Issue with databricks_sql_table resource - options forces replacement #5686

@dominik-dev

Description

@dominik-dev

Configuration

  # Warning: this will destroy the imported resource
-/+ resource "databricks_sql_table" "external" {
        catalog_name         = "my_catalog"
      + cluster_id           = (known after apply)
        data_source_format   = "CSV"
        effective_properties = {
            "spark.sql.dataSourceOptions.delimiter" = ","
            "spark.sql.dataSourceOptions.header"    = "true"
        }
      ~ id                   = "my_sql_table" -> (known after apply)
        name                 = "my_name"
      + options              = { # forces replacement
          + "delimiter" = ","
          + "header"    = "true"
        }

Expected Behavior

Importing using information from YAML config and live resource match and should not force replacement. The options.delimiter and effective_properties.spark.sql.dataSourceOptions.delimiter are the same.

Actual Behavior

Terraform plans to force a replacement of the resource.

Steps to Reproduce

Terraform and provider versions

Terraform: v1.13.3
Provider: v1.85.0

Is it a regression?

Don't know. Possibly related #4098.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions