<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Apply unitycatalog tags programmatically in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/apply-unitycatalog-tags-programmatically/m-p/55469#M30342</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/95066"&gt;@afisl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use following SQL command to add tags programmatically:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;alter table &amp;lt;table_name&amp;gt;          
set tags ('key1' = 'value1', 'key2' = 'value2')&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 19 Dec 2023 02:47:02 GMT</pubDate>
    <dc:creator>melbourne</dc:creator>
    <dc:date>2023-12-19T02:47:02Z</dc:date>
    <item>
      <title>Apply unitycatalog tags programmatically</title>
      <link>https://community.databricks.com/t5/data-engineering/apply-unitycatalog-tags-programmatically/m-p/53959#M29943</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm interested in the "Tags" feature of columns/schemas/tables of the UnityCatalog (described here: &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/tags" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/tags&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;I've been able to play with them by hand and would now like to integrate them from a programmatic perspective. I was able to QUERY them programmatically (described here &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/sql/language-manual/information-schema/column_tags#example)" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/azure/databricks/sql/language-manual/information-schema/column_tags#example)&lt;/A&gt; but not SET/UPDATE them programmatically.&lt;/P&gt;&lt;P&gt;I think it should be possible to &lt;STRONG&gt;set them programmatically&lt;/STRONG&gt; according to the following paragraph in the documentation:&lt;/P&gt;&lt;PRE&gt;Currently, Azure Databricks supports tagging SQL commands with catalogs, schemas, tables (views, materialized views, streaming tables), and table columns. Learn more about the Databricks SQL tag commands at &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/sql/language-manual/" target="_blank" rel="noopener"&gt;SQL language reference&lt;/A&gt;.&lt;/PRE&gt;&lt;P&gt;Source: &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/tags#manage-tags-with-sql-commands" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/tags#manage-tags-with-sql-commands&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I've tried UPDATE statement on the &lt;STRONG&gt;information_schema.column_tags table&lt;/STRONG&gt;, but get an spark error message:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;SparkUnsupportedOperationException: UPDATE TABLE is not supported temporarily.&lt;/PRE&gt;&lt;P&gt;Any idea how I can set tags programmatically?&lt;/P&gt;&lt;P&gt;Thanks for your support,&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Antoine&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Nov 2023 13:47:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/apply-unitycatalog-tags-programmatically/m-p/53959#M29943</guid>
      <dc:creator>afisl</dc:creator>
      <dc:date>2023-11-27T13:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Apply unitycatalog tags programmatically</title>
      <link>https://community.databricks.com/t5/data-engineering/apply-unitycatalog-tags-programmatically/m-p/54072#M29977</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;thanks for your answer. The documentation you quoted is exactly the one I saw.&lt;/P&gt;&lt;P&gt;But this paragraph is for me unclear:"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Manage Tags with SQL Commands&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;This feature is available for &lt;STRONG&gt;Databricks Runtime versions 13.3 and above&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;You can use Databricks SQL commands to tag catalogs, schemas, tables (views, materialized views, streaming tables), and table columns.&lt;/LI&gt;&lt;LI&gt;Learn more about the Databricks SQL tag commands in the SQL language reference."&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;I cannot find the Databricks SQL tag commands in the SQL language reference.&lt;/STRONG&gt; Could you help me there please?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Antoine&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 08:37:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/apply-unitycatalog-tags-programmatically/m-p/54072#M29977</guid>
      <dc:creator>afisl</dc:creator>
      <dc:date>2023-11-28T08:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Apply unitycatalog tags programmatically</title>
      <link>https://community.databricks.com/t5/data-engineering/apply-unitycatalog-tags-programmatically/m-p/55469#M30342</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/95066"&gt;@afisl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use following SQL command to add tags programmatically:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;alter table &amp;lt;table_name&amp;gt;          
set tags ('key1' = 'value1', 'key2' = 'value2')&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 19 Dec 2023 02:47:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/apply-unitycatalog-tags-programmatically/m-p/55469#M30342</guid>
      <dc:creator>melbourne</dc:creator>
      <dc:date>2023-12-19T02:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Apply unitycatalog tags programmatically</title>
      <link>https://community.databricks.com/t5/data-engineering/apply-unitycatalog-tags-programmatically/m-p/58719#M31246</link>
      <description>&lt;P&gt;Hi lets explore how&amp;nbsp; AI in a comminication channel like this will expoenentially waste the time users use to craft their post and explain their issue or question.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I do not understand why a simple "I dont know, but I will find out" is out of range these days.&lt;BR /&gt;&lt;BR /&gt;Sometimes we can make just as much or even more impact with simplicity without sending users in a loop or down the wrong rabbit hole, perfectly illustrated here by melbourne.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 15:46:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/apply-unitycatalog-tags-programmatically/m-p/58719#M31246</guid>
      <dc:creator>cltj</dc:creator>
      <dc:date>2024-01-30T15:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Apply unitycatalog tags programmatically</title>
      <link>https://community.databricks.com/t5/data-engineering/apply-unitycatalog-tags-programmatically/m-p/62524#M31985</link>
      <description>&lt;P&gt;just confirming, that as at March 2024 you can use SQL to set/unset tags on:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Tables&lt;/LI&gt;&lt;LI&gt;Table Columns&lt;/LI&gt;&lt;LI&gt;Views&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;But NOT on View Columns&lt;/P&gt;&lt;P&gt;however you CAN do this via the UI.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 04:17:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/apply-unitycatalog-tags-programmatically/m-p/62524#M31985</guid>
      <dc:creator>databass</dc:creator>
      <dc:date>2024-03-04T04:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Apply unitycatalog tags programmatically</title>
      <link>https://community.databricks.com/t5/data-engineering/apply-unitycatalog-tags-programmatically/m-p/72306#M34546</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/95066"&gt;@afisl&lt;/a&gt;&amp;nbsp;did you ever get down to the bottom of this? im trying to automatically set PI tags against column with certain words&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 10:56:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/apply-unitycatalog-tags-programmatically/m-p/72306#M34546</guid>
      <dc:creator>Mamzy10</dc:creator>
      <dc:date>2024-06-11T10:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Apply unitycatalog tags programmatically</title>
      <link>https://community.databricks.com/t5/data-engineering/apply-unitycatalog-tags-programmatically/m-p/80195#M35959</link>
      <description>&lt;P&gt;is there a way to apply column tags programmatically to views?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 18:35:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/apply-unitycatalog-tags-programmatically/m-p/80195#M35959</guid>
      <dc:creator>dflores_mn</dc:creator>
      <dc:date>2024-07-23T18:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Apply unitycatalog tags programmatically</title>
      <link>https://community.databricks.com/t5/data-engineering/apply-unitycatalog-tags-programmatically/m-p/91089#M38078</link>
      <description>&lt;P&gt;Hi, running ALTER TABLE SET TAGS works on views too!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 15:43:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/apply-unitycatalog-tags-programmatically/m-p/91089#M38078</guid>
      <dc:creator>Jiri_Koutny</dc:creator>
      <dc:date>2024-09-19T15:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Apply unitycatalog tags programmatically</title>
      <link>https://community.databricks.com/t5/data-engineering/apply-unitycatalog-tags-programmatically/m-p/113366#M44516</link>
      <description>&lt;LI-CODE lang="cpp"&gt;alter table &amp;lt;table_name&amp;gt; alter column &amp;lt;column_name&amp;gt;         
set tags ('key1' = 'value1', 'key2' = 'value2')&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 23 Mar 2025 07:01:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/apply-unitycatalog-tags-programmatically/m-p/113366#M44516</guid>
      <dc:creator>Marleen</dc:creator>
      <dc:date>2025-03-23T07:01:17Z</dc:date>
    </item>
  </channel>
</rss>

