Tag
Tags let you attach key-value metadata to Databend objects for data governance, classification, and compliance tracking. You can define tags with optional allowed values, assign them to objects, and query tag assignments through the TAG_REFERENCES table function.
Tag Management
| Command | Description |
|---|---|
| CREATE TAG | Creates a new tag with optional allowed values and comment |
| DROP TAG | Removes a tag (must have no active references) |
| SHOW TAGS | Lists tag definitions |
Tag Assignment
| Command | Description |
|---|---|
| SET TAG / UNSET TAG | Assigns or removes tags on database objects |
| TAG_REFERENCES | Queries tag assignments on a specific object |