cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

Why catalog API does not include the catalog ID in the response?

littlewat
Visitor

Hi!

I'm using Terraform(TF) to manage the Databricks resources.

I would like to rename the Unity catalog using TF, but I could not. (similar issues have been reported for this:
https://github.com/databricks/terraform-provider-databricks/issues?q=is%3Aissue%20state%3Aopen%20ren...

After investigating this issue, I found that the Terraform databricks_catalog resource is using the catalog name as its ID.
https://github.com/databricks/terraform-provider-databricks/blob/1982317e41702b4210e54666a5681cfd2b1...

 

This causes several serious problems, including:

  • It's impossible to rename a catalog using Terraform.

  • If I rename a catalog created by Terraform via the UI, Terraform will recognize it as deleted and recreate it based on theTerraform configuration. As a result, two catalogs will exist.

I looked into why Terraform is using the name as the ID, and it turns out that the REST API does not include the actual catalog ID in its response.
https://docs.databricks.com/api/workspace/catalogs/get

 

Could you please modify the REST API to include the catalog ID in its response?
This issue is causing us significant trouble.

Thank you!

0 REPLIES 0

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now
OSZAR »