TABLE_TAGS
Applies to: Databricks SQL Databricks Runtime 13.3 LTS and above Unity Catalog only.
INFORMATION_SCHEMA.TABLE_TAGS
contains the table tagging metadata within the table, or all tables if owned by the SYSTEM
catalog. Also contains tagging metadata for views and materialized views.
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 TABLE_TAGS
relation contains the following.
Name |
Data type |
Nullable |
Description |
---|---|---|---|
|
|
No |
The catalog name that a given tag applies to. |
|
|
No |
The schema that the tag applies to. |
|
|
No |
The table, view, or materialized view that the tag applies to. |
|
|
No |
The name of the tag. |
|
|
No |
The value of the tag. |
Constraints
The following constraint applies to the TABLE_TAGS
relation:
Class |
Name |
Column List |
Description |
---|---|---|---|
Primary key |
|
|
Unique identifier for a table tag. |
Foreign key |
|
|
References SCHEMATA |
Foreign key |
|
|
References TABLES |
Foreign key |
|
|
References CATALOGS |