nayan_wylde
Esteemed Contributor

@Hil 

You need to tell Terraform not to set the default namespace to hive_metastore, but instead to your UC catalog (or just leave it unset so Databricks auto-assigns UC).

In Terraform (Databricks provider), the relevant field is workspace.default_namespace:

resource "databricks_mws_workspaces" "this" {
  # … your existing config …
  workspace_name = "my-ws"

  # Force default namespace to your UC catalog
  workspace {
    default_namespace = "my_catalog"   # <-- replace with your actual UC catalog
  }
}