| subcategory | Unity Catalog |
|---|
Retrieves details about databricks_schema that was created by Terraform or manually.
A schema can be identified by its two-level (fully qualified) name (in the form of: catalog_name.schema_name) as input. This can be retrieved programmatically using databricks_schemas data source.
-> This data source can only be used with a workspace-level provider!
- Retrieve details of all schemas in in a sandbox databricks_catalog:
data "databricks_schemas" "all" {
catalog_name = "sandbox"
}
data "databricks_schema" "this" {
for_each = data.databricks_schemas.all.ids
name = each.value
}- Search for a specific schema by its fully qualified name:
data "databricks_schema" "this" {
name = "catalog.schema"
}name- (Required) a fully qualified name of databricks_schema:catalog.schemaprovider_config- (Optional) Configure the provider for management through account provider. This block consists of the following fields:workspace_id- (Required) Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
In addition to all arguments above, the following attributes are exported:
id- ID of this Unity Catalog Schema in form of<catalog>.<schema>.schema_info-SchemaInfoobject for a Unity Catalog schema. This contains the following attributes:browse_only- indicates whether the principal is limited to retrieving metadata for the schema through the BROWSE privilege.catalog_name- the name of the catalog where the schema is.catalog_type- the type of the parent catalog.comment- the comment attached to the volumecreated_at- time at which this schema was created, in epoch milliseconds.created_by- username of schema creator.effective_predictive_optimization_flag- information about actual state of predictive optimization.enable_predictive_optimization- whether predictive optimization should be enabled for this object and objects under it.full_name- the two-level (fully qualified) name of the schemametastore_id- the unique identifier of the metastorename- Name of schema, relative to parent catalog.owner- the identifier of the user who owns the schemaproperties- map of properties set on the schemaschema_id- the unique identifier of the schemastorage_location- the storage location on the cloud.storage_root- storage root URL for managed tables within schema.updated_at- the timestamp of the last time changes were made to the schemaupdated_by- the identifier of the user who updated the schema last time
The following resources are used in the same context:
- databricks_schema to manage schemas within Unity Catalog.
- databricks_catalog to manage catalogs within Unity Catalog.