<?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 Upgrade tables to Unity Catalog error (Azure) in Data Governance</title>
    <link>https://community.databricks.com/t5/data-governance/upgrade-tables-to-unity-catalog-error-azure/m-p/21735#M713</link>
    <description>&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set up a Unity Catalog (UC), and I am attempting to "upgrade my Delta tables" in the hive_metastore to my new catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have followed the instructions here: &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/migrate" alt="https://learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/migrate" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/migrate&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set up a Access Connector and configured external locations in the UC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the following error when using the "Upgrade Wizard" - any ideas how to resolve this issue? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1155iCBCE93D58992D390/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;As I understand it, when I click "Run the upgrade" the wizard runs this SQL query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;-- Note: removed the names of the databases and tables for privacy
-- Upgrade hive_metastore.db.tblto cat.db.tbl
CREATE TABLE cat.db.tbl LIKE hive_metastore.db.tbl COPY LOCATION;
ALTER TABLE hive_metastore.db.tbl SET TBLPROPERTIES ('upgraded_to' = 'cat.db.tbl');&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;From this &lt;A href="https://stackoverflow.com/questions/69943095/analysisexception-operation-not-allowed-create-table-like-is-not-supported-f" alt="https://stackoverflow.com/questions/69943095/analysisexception-operation-not-allowed-create-table-like-is-not-supported-f" target="_blank"&gt;post &lt;/A&gt;on Stack Overflow it would seem that delta tables are not supported with the LIKE sql command.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Nov 2022 15:06:30 GMT</pubDate>
    <dc:creator>J_M_W</dc:creator>
    <dc:date>2022-11-18T15:06:30Z</dc:date>
    <item>
      <title>Upgrade tables to Unity Catalog error (Azure)</title>
      <link>https://community.databricks.com/t5/data-governance/upgrade-tables-to-unity-catalog-error-azure/m-p/21735#M713</link>
      <description>&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set up a Unity Catalog (UC), and I am attempting to "upgrade my Delta tables" in the hive_metastore to my new catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have followed the instructions here: &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/migrate" alt="https://learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/migrate" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/migrate&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set up a Access Connector and configured external locations in the UC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the following error when using the "Upgrade Wizard" - any ideas how to resolve this issue? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1155iCBCE93D58992D390/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;As I understand it, when I click "Run the upgrade" the wizard runs this SQL query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;-- Note: removed the names of the databases and tables for privacy
-- Upgrade hive_metastore.db.tblto cat.db.tbl
CREATE TABLE cat.db.tbl LIKE hive_metastore.db.tbl COPY LOCATION;
ALTER TABLE hive_metastore.db.tbl SET TBLPROPERTIES ('upgraded_to' = 'cat.db.tbl');&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;From this &lt;A href="https://stackoverflow.com/questions/69943095/analysisexception-operation-not-allowed-create-table-like-is-not-supported-f" alt="https://stackoverflow.com/questions/69943095/analysisexception-operation-not-allowed-create-table-like-is-not-supported-f" target="_blank"&gt;post &lt;/A&gt;on Stack Overflow it would seem that delta tables are not supported with the LIKE sql command.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 15:06:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/upgrade-tables-to-unity-catalog-error-azure/m-p/21735#M713</guid>
      <dc:creator>J_M_W</dc:creator>
      <dc:date>2022-11-18T15:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrade tables to Unity Catalog error (Azure)</title>
      <link>https://community.databricks.com/t5/data-governance/upgrade-tables-to-unity-catalog-error-azure/m-p/21736#M714</link>
      <description>&lt;P&gt;I am also getting this strange error when using the data explorer...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like it using 4 name parts, not 3 ??&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1156i9A93958E67A5265F/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1153i269FAF89DADE93B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 15:54:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/upgrade-tables-to-unity-catalog-error-azure/m-p/21736#M714</guid>
      <dc:creator>J_M_W</dc:creator>
      <dc:date>2022-11-18T15:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrade tables to Unity Catalog error (Azure)</title>
      <link>https://community.databricks.com/t5/data-governance/upgrade-tables-to-unity-catalog-error-azure/m-p/21737#M715</link>
      <description>&lt;P&gt;FYI - this is now magically resolved. I'm guessing it was a temporary bug or something.​&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 19:15:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/upgrade-tables-to-unity-catalog-error-azure/m-p/21737#M715</guid>
      <dc:creator>J_M_W</dc:creator>
      <dc:date>2022-11-18T19:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrade tables to Unity Catalog error (Azure)</title>
      <link>https://community.databricks.com/t5/data-governance/upgrade-tables-to-unity-catalog-error-azure/m-p/21738#M716</link>
      <description>&lt;P&gt;@James Winfield​&amp;nbsp;it should be 3 level namespaces, catalog name cannot be hive_metastore &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;B&gt;CREATE&lt;/B&gt; &lt;B&gt;TABLE&lt;/B&gt; &amp;lt;&lt;B&gt;catalog_name&lt;/B&gt;&amp;gt;.&amp;lt;&lt;B&gt;schema_name&lt;/B&gt;&amp;gt;.&amp;lt;&lt;B&gt;table_name&lt;/B&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 23:21:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/upgrade-tables-to-unity-catalog-error-azure/m-p/21738#M716</guid>
      <dc:creator>karthik_p</dc:creator>
      <dc:date>2022-11-18T23:21:57Z</dc:date>
    </item>
  </channel>
</rss>

