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).

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!