<?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: Column Data type miss-match while databricks catalog federation in Data Governance</title>
    <link>https://community.databricks.com/t5/data-governance/column-data-type-miss-match-while-databricks-catalog-federation/m-p/71099#M1852</link>
    <description>&lt;P&gt;System table data is available at the account level. If you are trying LH Federation for querying system tables isn't that already available in the source workspace?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/en/admin/system-tables/index.html#what-are-system-tables" target="_blank"&gt;https://docs.databricks.com/en/admin/system-tables/index.html#what-are-system-tables&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/en/admin/system-tables/index.html#enable-system-table-schemas" target="_blank"&gt;https://docs.databricks.com/en/admin/system-tables/index.html#enable-system-table-schemas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Since system tables are governed by Unity Catalog, you need to have at least one Unity Catalog-enabled workspace in your account to enable and access system tables. System tables include data from all workspaces in your account but they can only be accessed from a Unity Catalog-enabled workspace.&lt;/P&gt;
&lt;P&gt;System tables are enabled at the schema level. If you enable a system schema, you enable all the tables within that schema. When new schemas are released, an account admin needs to manually enable the schema.&lt;/P&gt;</description>
    <pubDate>Thu, 30 May 2024 11:52:59 GMT</pubDate>
    <dc:creator>dkushari</dc:creator>
    <dc:date>2024-05-30T11:52:59Z</dc:date>
    <item>
      <title>Column Data type miss-match while databricks catalog federation</title>
      <link>https://community.databricks.com/t5/data-governance/column-data-type-miss-match-while-databricks-catalog-federation/m-p/71093#M1850</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We are facing an issue related to the Data type mismatch&amp;nbsp;when performing&amp;nbsp;the&amp;nbsp;federation&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;queries&amp;nbsp;(&lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/en/query-federation/databricks.html" target="_blank" rel="noopener"&gt;link&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Basic need is to perform union on these both tables from federated(system tables) and system tables (target/current workspace).&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;Problem&lt;/STRONG&gt;:&amp;nbsp; &lt;EM&gt;Struct and Map&lt;/EM&gt; data type is getting converted into &lt;EM&gt;Varchar(255)&lt;/EM&gt;&amp;nbsp;while federating from another databricks account.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Temporary solution&lt;/STRONG&gt;: Using of inbuild functions from_json() but again problem is the struct field are changing based on new resales which is breaking the queries.&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;The federation is simple databricks-to-databricks.&lt;BR /&gt;Please visit these below links for more details:&amp;nbsp;&lt;BR /&gt;&amp;nbsp; * &lt;A href="https://docs.databricks.com/en/query-federation/databricks.html" target="_blank" rel="noopener"&gt;https://docs.databricks.com/en/query-federation/databricks.html&lt;/A&gt;&lt;BR /&gt;&amp;nbsp; *&amp;nbsp;&lt;A href="https://docs.databricks.com/en/query-federation/index.html" target="_blank" rel="noopener"&gt;https://docs.databricks.com/en/query-federation/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below are the images showing the discrepancy in data-type mismatch.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image (8).png" style="width: 873px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/7928i4E04598F73C5E3A1/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="image (8).png" alt="image (8).png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image (7).png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/7929i007D8A062A9E1945/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="image (7).png" alt="image (7).png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image (6).png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/7930i436463E86BA2B6D4/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="image (6).png" alt="image (6).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 08:34:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/column-data-type-miss-match-while-databricks-catalog-federation/m-p/71093#M1850</guid>
      <dc:creator>vishal-kilaskar</dc:creator>
      <dc:date>2024-05-30T08:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Column Data type miss-match while databricks catalog federation</title>
      <link>https://community.databricks.com/t5/data-governance/column-data-type-miss-match-while-databricks-catalog-federation/m-p/71099#M1852</link>
      <description>&lt;P&gt;System table data is available at the account level. If you are trying LH Federation for querying system tables isn't that already available in the source workspace?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/en/admin/system-tables/index.html#what-are-system-tables" target="_blank"&gt;https://docs.databricks.com/en/admin/system-tables/index.html#what-are-system-tables&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/en/admin/system-tables/index.html#enable-system-table-schemas" target="_blank"&gt;https://docs.databricks.com/en/admin/system-tables/index.html#enable-system-table-schemas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Since system tables are governed by Unity Catalog, you need to have at least one Unity Catalog-enabled workspace in your account to enable and access system tables. System tables include data from all workspaces in your account but they can only be accessed from a Unity Catalog-enabled workspace.&lt;/P&gt;
&lt;P&gt;System tables are enabled at the schema level. If you enable a system schema, you enable all the tables within that schema. When new schemas are released, an account admin needs to manually enable the schema.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 11:52:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/column-data-type-miss-match-while-databricks-catalog-federation/m-p/71099#M1852</guid>
      <dc:creator>dkushari</dc:creator>
      <dc:date>2024-05-30T11:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Column Data type miss-match while databricks catalog federation</title>
      <link>https://community.databricks.com/t5/data-governance/column-data-type-miss-match-while-databricks-catalog-federation/m-p/71154#M1853</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/38309"&gt;@dkushari&lt;/a&gt;&amp;nbsp; correct, We have already enabled UC and system tables.&lt;BR /&gt;Federated Queries we are mainly using it for external data source.&lt;BR /&gt;For Ex:&lt;BR /&gt;One account is target(current account) say Azure another one which we want to federate is from Another account say AWS.&lt;BR /&gt;so its aws account/ system tables are federated into Azure is&amp;nbsp; Azure (system tables) &amp;lt;---- AWS (system tables)&lt;BR /&gt;&lt;BR /&gt;Hope it makes clear. Please check the Images one is Federated(AWS/GCP) another is Target (Azure).&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 07:55:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/column-data-type-miss-match-while-databricks-catalog-federation/m-p/71154#M1853</guid>
      <dc:creator>vishal-kilaskar</dc:creator>
      <dc:date>2024-05-31T07:55:54Z</dc:date>
    </item>
  </channel>
</rss>

