databricks / terraform-provider-databricks

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

[FEATURE] Allow setting Unity Catalog on `databricks_sql_endpoint` #2311

Open mad-it opened 1 year ago

mad-it commented 1 year ago

Use-cases

There is an option in the UI when creating an SQL Warehouse to enable Unity Catalog, however this feature is not yet available on the terraform provider.

Attempted Solutions

The only solution is to provision the resource through terraform and manually update it in the UI to enable this.

Proposal

Add a flag that represents the same functionality in the UI for enabling Unity Catalog.

zcking commented 1 year ago

Hmm, I don't see an option for this is in the Databricks REST API either: https://docs.databricks.com/api-explorer/workspace/warehouses/create

But also according to the following documentation, Unity Catalog is enabled on SQL Warehouses by default, at least if UC is enabled on the Workspace already; does that not apply to SQL warehouses created with the API? https://docs.databricks.com/data-governance/unity-catalog/compute.html#create-a-sql-warehouse-that-can-access-unity-catalog