<?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: Error creating Unity Catalog external table in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/error-creating-unity-catalog-external-table/m-p/109383#M43292</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;We are experiencing the exact same problem.&lt;BR /&gt;Does anyone have a solution to the issue?&lt;BR /&gt;Or do we really need to rename our partitioning to year=2024,month=01,day=01?&lt;/P&gt;</description>
    <pubDate>Fri, 07 Feb 2025 10:13:15 GMT</pubDate>
    <dc:creator>mBusk</dc:creator>
    <dc:date>2025-02-07T10:13:15Z</dc:date>
    <item>
      <title>Error creating Unity Catalog external table</title>
      <link>https://community.databricks.com/t5/data-engineering/error-creating-unity-catalog-external-table/m-p/108651#M43102</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I tried creating an external table from a partitioned parquet folder in Unity Catalog. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Initially, I created the table from the Data Ingestion UI. It worked but only a tiny portion of the table was actually loaded. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Next, I tried running a SQL DDL CREATE TABLE IF NOT EXISTS prod.reporting.send_date_summary ( ... ) USING parquet LOCATION "s3:/...." I tried with LOCATION as the root folder containing all subfolders and files, as well as the root folder with wild cards for subfolders. Querying this table threw the following error: ExecutionException: com.databricks.sql.managedcatalog.UnityCatalogServiceException: [RequestId=b2e92078-29ce-4383-9501-3aa5adaa5e93 ErrorClass=BAD_REQUEST] Request URL is not related to this EXTERNAL table. The request url = Some(s3://....). The table storage path is Some(s3://...). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you tell me how external tables should be created in Unity Catalog from partitioned parquet files?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 19:55:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-creating-unity-catalog-external-table/m-p/108651#M43102</guid>
      <dc:creator>nwong</dc:creator>
      <dc:date>2025-02-03T19:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating Unity Catalog external table</title>
      <link>https://community.databricks.com/t5/data-engineering/error-creating-unity-catalog-external-table/m-p/108654#M43104</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/147578"&gt;@nwong&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Ensure that the Cloud Storage URI provided is complete and correct, including the scheme, since error looks to be complaining about it.&lt;/P&gt;
&lt;P&gt;Can you try using this:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/tables/external-partition-discovery.html" target="_blank"&gt;https://docs.databricks.com/en/tables/external-partition-discovery.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;CREATE OR REPLACE TABLE &amp;lt;catalog&amp;gt;.&amp;lt;schema&amp;gt;.&amp;lt;table-name&amp;gt;&lt;BR /&gt;USING &amp;lt;format&amp;gt;&lt;BR /&gt;PARTITIONED BY (&amp;lt;partition-column-list&amp;gt;)&lt;BR /&gt;LOCATION 's3://&amp;lt;bucket-path&amp;gt;/&amp;lt;table-directory&amp;gt;';&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 20:18:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-creating-unity-catalog-external-table/m-p/108654#M43104</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-02-03T20:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating Unity Catalog external table</title>
      <link>https://community.databricks.com/t5/data-engineering/error-creating-unity-catalog-external-table/m-p/108681#M43117</link>
      <description>&lt;P&gt;Thanks for the suggestion.&lt;/P&gt;&lt;P&gt;I added&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PARTITIONED BY (partition_date)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but not all of the data is loaded.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The parquet files are not stored in&amp;nbsp;Hive-style partitioning. The folder format is&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;s3://bucket_name/send_date_summary/report/yyyy/mm/dd/*.parquet&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;where yyyy/mm/dd is the&amp;nbsp;partition_date.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do I need to manually add each partition? There are hundreds.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there an easier way to do this?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And will setting partition log automatically discover new partitions that are added to the folder?&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;SET&lt;/SPAN&gt; &lt;SPAN class=""&gt;spark&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;databricks&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;nonDelta&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;partitionLog&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;enabled&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;true&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 23:45:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-creating-unity-catalog-external-table/m-p/108681#M43117</guid>
      <dc:creator>nwong</dc:creator>
      <dc:date>2025-02-03T23:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating Unity Catalog external table</title>
      <link>https://community.databricks.com/t5/data-engineering/error-creating-unity-catalog-external-table/m-p/108683#M43118</link>
      <description>&lt;P&gt;I just tried manually adding a partition&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALTER&lt;/SPAN&gt; &lt;SPAN&gt;TABLE&lt;/SPAN&gt; &lt;SPAN&gt;prod&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;reporting&lt;/SPAN&gt;&lt;SPAN&gt;.send_date_summary&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ADD&lt;/SPAN&gt; &lt;SPAN&gt;PARTITION&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;year&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;2022&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;month&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;12&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;day&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;05&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;LOCATION&lt;/SPAN&gt; &lt;SPAN&gt;'s3://bucket_name/send_date_summary/report/2022/12/05/'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;and got an error&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[UC_COMMAND_NOT_SUPPORTED.WITHOUT_RECOMMENDATION] The command(s): ALTER TABLE (add partition) are not supported in Unity Catalog. SQLSTATE: 0AKUC&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;and I can't use MSCK REPAIR TABLE because the folders are not in Hive-style partitioning.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Feb 2025 00:12:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-creating-unity-catalog-external-table/m-p/108683#M43118</guid>
      <dc:creator>nwong</dc:creator>
      <dc:date>2025-02-04T00:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating Unity Catalog external table</title>
      <link>https://community.databricks.com/t5/data-engineering/error-creating-unity-catalog-external-table/m-p/109383#M43292</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;We are experiencing the exact same problem.&lt;BR /&gt;Does anyone have a solution to the issue?&lt;BR /&gt;Or do we really need to rename our partitioning to year=2024,month=01,day=01?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 10:13:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-creating-unity-catalog-external-table/m-p/109383#M43292</guid>
      <dc:creator>mBusk</dc:creator>
      <dc:date>2025-02-07T10:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating Unity Catalog external table</title>
      <link>https://community.databricks.com/t5/data-engineering/error-creating-unity-catalog-external-table/m-p/111903#M44039</link>
      <description>&lt;P&gt;You can use recursiveFileLookup in OPTIONS, as shown in this topic:&amp;nbsp;&lt;A href="https://community.databricks.com/t5/data-engineering/external-table-from-external-location/td-p/69246" target="_blank"&gt;https://community.databricks.com/t5/data-engineering/external-table-from-external-location/td-p/69246&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 10:20:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-creating-unity-catalog-external-table/m-p/111903#M44039</guid>
      <dc:creator>royvansanten</dc:creator>
      <dc:date>2025-03-06T10:20:55Z</dc:date>
    </item>
  </channel>
</rss>

