cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Governance
Join discussions on data governance practices, compliance, and security within the Databricks Community. Exchange strategies and insights to ensure data integrity and regulatory compliance.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Unity catalog tagging through Code

Mamzy10
New Contributor II

Hi I was wondering how you would apply tags to tables, columns etc in unity catalog through code?

One use case i want to have a look at is by automatically applying PI classification against certain tables and columns that contain certain words.

Is this possible?

TIA

1 REPLY 1

-werners-
Esteemed Contributor III

Using sql:

https://docs.databricks.com/en/data-governance/unity-catalog/tags.html#manage-tags-using-sql-command...
I am not aware of a python/scala counterpart (but using spark.sql() that is no issue).

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group