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_catalog resource when providing a database key for foreign catalog generation #4503

Open
tucker-anderson opened this issue Feb 13, 2025 · 2 comments

Comments

@tucker-anderson
Copy link

Configuration

I'm having an issue since the 1.165.0 provider version (this code seems to work up to 1.164.1 in my testing):

resource "databricks_catalog" "catalogs" {
  name                    = "**SOME-CATALOG-NAME-HERE**"
  connection_name = "**SOME-CONNECTION-NAME-REFERENCE-HERE**"
  options                 = { database = "**SOME-DB-NAME-HERE**" }
}

Yields this on apply:

Error: cannot create catalog: UpdateCatalog options can not be provided.

Seems similar to issue #2686.

Expected Behavior

Foreign catalog should be created upon terraform apply

Actual Behavior

Catalog cannot be created with a database option key as defined here in the provider docs

Steps to Reproduce

Terraform and provider versions

Tested on providers 1.165.0 through current and all versions yielded error.

Is it a regression?

1.164.1 and 1.164.0 applies successfully

@alexott
Copy link
Contributor

alexott commented Feb 14, 2025

just to confirm - does this happen on creation?

Most probably it's caused by #4476 (Cc: @mgyucht)

@tucker-anderson
Copy link
Author

tucker-anderson commented Feb 14, 2025

Yes during creation of a new catalog during terraform apply. Deletions of existing catalogs with these options works with the newest providers. I did not test modifications.

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

2 participants