CATALOG_TAGS

Applies to: check marked yes Databricks SQL check marked yes Databricks Runtime 13.3 and above check marked yes Unity Catalog only.

INFORMATION_SCHEMA.CATALOG_TAGS contains all the tags that have been applied to all the catalogs within the metastore.

Information is displayed only for catalogs the user has permission to interact with.

This relation is an extension to the SQL Standard Information Schema.

Definition

The CATALOG_TAGS relation contains the following.

Name Data type Nullable Description
CATALOG_NAME STRING No The catalog name that a given tag applies to.
TAG_NAME STRING No The name of the tag.
TAG_VALUE STRING No The value of the tag.

Constraints

The following constraint applies to the CATALOG_TAGS relation:

Class Name Column List Description
Primary key CATALOG_TAGS_PK CATALOG_NAME, TAG_NAME, TAG_VALUE Unique identifier for a catalog tag.
Foreign key CATTAGS_CATS_FK CATALOG_NAME References CATALOGS

Example

> SELECT catalog_name, tag_name, tag_value
    FROM information_schema.catalog_tags;