<?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: Synchronising metadata (e.g., tags) across schemas under Unity Catalog (Azure) in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/synchronising-metadata-e-g-tags-across-schemas-under-unity/m-p/140396#M11075</link>
    <description>&lt;P&gt;Thank you a lot! Much appreciated your response. I will try for it and let you know. Though a gap/risk I am thinking is the following. What if the sales table does not have the same number of columns or the same column names across schemas? Do you believe that there is a cross-check for this? I am not sure it can be validated&lt;/P&gt;</description>
    <pubDate>Wed, 26 Nov 2025 10:01:47 GMT</pubDate>
    <dc:creator>AntonisCh</dc:creator>
    <dc:date>2025-11-26T10:01:47Z</dc:date>
    <item>
      <title>Synchronising metadata (e.g., tags) across schemas under Unity Catalog (Azure)</title>
      <link>https://community.databricks.com/t5/get-started-discussions/synchronising-metadata-e-g-tags-across-schemas-under-unity/m-p/140383#M11073</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I hope you are doing great!&lt;BR /&gt;&lt;BR /&gt;I want to synchronise metadata (e.g., description, comments, tags) across schemas under the Unity Catalog (e.g., test.dev, test.uat). For example, under the schema &lt;STRONG&gt;test.dev&lt;/STRONG&gt;, there is a &lt;STRONG&gt;sales&lt;/STRONG&gt; table with multiple columns. For each column, a comment and a tag are added. Also, the &lt;STRONG&gt;sales&lt;/STRONG&gt; table exists in &lt;STRONG&gt;test.uat&lt;/STRONG&gt; schema. How can I clone/merge the tags, comments to the &lt;STRONG&gt;test.uat&lt;/STRONG&gt; schema? Is there any standard functionality to achieve this? Or is there a workaround solution using APIs?&lt;BR /&gt;&lt;BR /&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 09:06:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/synchronising-metadata-e-g-tags-across-schemas-under-unity/m-p/140383#M11073</guid>
      <dc:creator>AntonisCh</dc:creator>
      <dc:date>2025-11-26T09:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronising metadata (e.g., tags) across schemas under Unity Catalog (Azure)</title>
      <link>https://community.databricks.com/t5/get-started-discussions/synchronising-metadata-e-g-tags-across-schemas-under-unity/m-p/140393#M11074</link>
      <description>&lt;P&gt;I think there is no automatic way of achieving this BUT try (and customize if needed) this script &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;. Change "source_schema" and "table_schema" as per your needs, and then run it as a query in a SQL Warehouse cluster:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;WITH table_tags AS (
    SELECT
        catalog_name,
        schema_name,
        table_name,
        NULL AS column_name,
        tag_name,
        tag_value
    FROM INFORMATION_SCHEMA.TABLE_TAGS
    WHERE schema_name = 'source_schema'

),
column_tags AS (
    SELECT
        catalog_name,
        schema_name,
        table_name,
        column_name,
        tag_name,
        tag_value    
    FROM INFORMATION_SCHEMA.COLUMN_TAGS
    WHERE schema_name = 'source_schema'
)
SELECT 
    'ALTER TABLE target_schema.' || table_name ||
    ' SET TAGS ("' || tag_name || '"="' || tag_value || '");' AS generated_sql
FROM table_tags
UNION ALL
SELECT            
    'ALTER TABLE target_schema.' || table_name ||
    ' ALTER COLUMN ' || column_name ||
    ' SET TAGS ("' || tag_name || '"="' || tag_value || '");' AS generated_sql
FROM column_tags&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 09:54:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/synchronising-metadata-e-g-tags-across-schemas-under-unity/m-p/140393#M11074</guid>
      <dc:creator>Coffee77</dc:creator>
      <dc:date>2025-11-26T09:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronising metadata (e.g., tags) across schemas under Unity Catalog (Azure)</title>
      <link>https://community.databricks.com/t5/get-started-discussions/synchronising-metadata-e-g-tags-across-schemas-under-unity/m-p/140396#M11075</link>
      <description>&lt;P&gt;Thank you a lot! Much appreciated your response. I will try for it and let you know. Though a gap/risk I am thinking is the following. What if the sales table does not have the same number of columns or the same column names across schemas? Do you believe that there is a cross-check for this? I am not sure it can be validated&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 10:01:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/synchronising-metadata-e-g-tags-across-schemas-under-unity/m-p/140396#M11075</guid>
      <dc:creator>AntonisCh</dc:creator>
      <dc:date>2025-11-26T10:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronising metadata (e.g., tags) across schemas under Unity Catalog (Azure)</title>
      <link>https://community.databricks.com/t5/get-started-discussions/synchronising-metadata-e-g-tags-across-schemas-under-unity/m-p/140399#M11076</link>
      <description>&lt;P&gt;You can improve that script indeed. I created that in an "ad-hoc" way to help you and give insight on possible workaround. At least, I tested a little bit in a very simple scenario working fine&amp;nbsp;BUT it's true it is very likely is not covering all cases. I would need hours instead of minutes to cover broader scopes.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 10:09:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/synchronising-metadata-e-g-tags-across-schemas-under-unity/m-p/140399#M11076</guid>
      <dc:creator>Coffee77</dc:creator>
      <dc:date>2025-11-26T10:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronising metadata (e.g., tags) across schemas under Unity Catalog (Azure)</title>
      <link>https://community.databricks.com/t5/get-started-discussions/synchronising-metadata-e-g-tags-across-schemas-under-unity/m-p/140402#M11077</link>
      <description>&lt;P&gt;It's completely fine, and I do understand. Thank you for your time and effort here!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 10:21:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/synchronising-metadata-e-g-tags-across-schemas-under-unity/m-p/140402#M11077</guid>
      <dc:creator>AntonisCh</dc:creator>
      <dc:date>2025-11-26T10:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronising metadata (e.g., tags) across schemas under Unity Catalog (Azure)</title>
      <link>https://community.databricks.com/t5/get-started-discussions/synchronising-metadata-e-g-tags-across-schemas-under-unity/m-p/140403#M11078</link>
      <description>&lt;P&gt;Happy to hear that, I also stored in my personal repo to use it onwards&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 10:36:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/synchronising-metadata-e-g-tags-across-schemas-under-unity/m-p/140403#M11078</guid>
      <dc:creator>Coffee77</dc:creator>
      <dc:date>2025-11-26T10:36:31Z</dc:date>
    </item>
  </channel>
</rss>

