Skip to main content

system_schemas

Creates, updates, deletes, gets or lists a system_schemas resource.

Overview

Namesystem_schemas
TypeResource
Iddatabricks_workspace.unitycatalog.system_schemas

Fields

The following fields are returned by SELECT queries:

The schemas list was successfully retrieved.

NameDatatypeDescription
schemastring
statestring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectdeployment_nameGets an array of system schemas for a metastore. The caller must be an account admin or a metastore admin.
disableexecdeployment_nameDisables the system schema and removes it from the system catalog. The caller must be an account admin or a metastore admin.
enableexecdeployment_nameEnables the system schema and adds it to the system catalog. The caller must be an account admin or a metastore admin.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)

SELECT examples

Gets an array of system schemas for a metastore. The caller must be an account admin or a metastore admin.

SELECT
schema,
state
FROM databricks_workspace.unitycatalog.system_schemas
WHERE deployment_name = '{{ deployment_name }}' -- required;

Lifecycle Methods

Disables the system schema and removes it from the system catalog. The caller must be an account admin or a metastore admin.

EXEC databricks_workspace.unitycatalog.system_schemas.disable 
@deployment_name='{{ deployment_name }}' --required;