terraform-provider-databricks icon indicating copy to clipboard operation
terraform-provider-databricks copied to clipboard

[Feat] Add data sources for retrieving local hive_metastores tables and views

Open vadivelselvaraj opened this issue 2 years ago • 3 comments

To prevent hard-coding tables for databases when granting privileges to principals(as detailed in my previous request), a data resource that pulls up the tables and views(via separate TF resources ideally) from the Databricks workspace's local hive_metastore would be great to keep all of the permissions management within the terraform codebase.

This could be part of the existing databricks_tables terraform resource as well with the only difference being the catalog_name set to hive_metastore rather than one of the Unity Catalog catalogs.

data "databricks_tables" "things" {
  catalog_name = "hive_metastore"
  schema_name = "things"
}

output "all_things_tables" {
  value = data.databricks_tables.things
}

vadivelselvaraj avatar Apr 27 '22 21:04 vadivelselvaraj

Thank you for the feature request, @vadivelselvaraj ! Currently, the team operates in a limited capacity, carefully prioritizing, and we cannot provide a timeline to implement this feature. Please make a Pull Request if you'd like to see this feature sooner, and we'll guide you through the journey.

nfx avatar May 30 '22 10:05 nfx

Following up - is this issue still relevant?

nfx avatar Aug 22 '22 09:08 nfx

Following up - is this issue still relevant?

Yes, @nfx. I don’t have bandwidth to work on this now though. Will make a comment when we start this.

vadivelselvaraj avatar Aug 22 '22 14:08 vadivelselvaraj

Following up - is this issue still relevant?

nfx avatar Oct 13 '22 10:10 nfx

Yes, @nfx. Though we’re migrating to UC, we still have certain workspace HMS dbs/tables to work through.

vadivelselvaraj avatar Oct 28 '22 17:10 vadivelselvaraj