<?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 Error Creating Table from delta location dbfs in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/error-creating-table-from-delta-location-dbfs/m-p/97869#M39564</link>
    <description>&lt;DIV&gt;&lt;DIV class=""&gt;[&lt;A class="" href="https://docs.microsoft.com/azure/databricks/error-messages/error-classes#uc_file_scheme_for_table_creation_not_supported" target="_blank" rel="noopener noreferrer"&gt;UC_FILE_SCHEME_FOR_TABLE_CREATION_NOT_SUPPORTED&lt;/A&gt;] Creating table in Unity Catalog with file scheme dbfs is not supported. Instead, please create a federated data source connection using the CREATE CONNECTION command for the same table provider, then create a catalog based on the connection with a CREATE FOREIGN CATALOG command to reference the tables therein. SQLSTATE: 0AKUC&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;File &lt;SPAN class=""&gt;&lt;A target="_blank"&gt;&amp;lt;command-1426791046668810&amp;gt;&lt;/A&gt;, line 2&lt;/SPAN&gt; &lt;SPAN&gt;1&lt;/SPAN&gt; spark&lt;SPAN&gt;.&lt;/SPAN&gt;sql(&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;CREATE DATABASE IF NOT EXISTS AdventureWorks&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;) &lt;SPAN class=""&gt;----&amp;gt; 2&lt;/SPAN&gt; spark&lt;SPAN&gt;.&lt;/SPAN&gt;sql(&lt;SPAN&gt;f&lt;/SPAN&gt;&lt;SPAN&gt;"""&lt;/SPAN&gt;&lt;SPAN&gt;CREATE TABLE AdventureWorks.ProductsExternal&lt;/SPAN&gt; &lt;SPAN&gt;3&lt;/SPAN&gt; &lt;SPAN&gt;( ProductID INT, &lt;/SPAN&gt;&lt;SPAN&gt;4&lt;/SPAN&gt; &lt;SPAN&gt;ProductName STRING,&lt;/SPAN&gt; &lt;SPAN&gt;5&lt;/SPAN&gt; &lt;SPAN&gt;Category STRING,&lt;/SPAN&gt; &lt;SPAN&gt;6&lt;/SPAN&gt; &lt;SPAN&gt;ListPrice FLOAT)&lt;/SPAN&gt; &lt;SPAN&gt;7&lt;/SPAN&gt; &lt;SPAN&gt;USING DELTA LOCATION &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;dbfs:/&lt;/SPAN&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;"""&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;format(delta_table_path)) &lt;SPAN&gt;8&lt;/SPAN&gt; spark&lt;SPAN&gt;.&lt;/SPAN&gt;sql(&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;DESCRIBE EXTENDED AdventureWorks.ProductsExternal&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;)&lt;SPAN&gt;.&lt;/SPAN&gt;show(truncate&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;False&lt;/SPAN&gt;)&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 06 Nov 2024 08:20:07 GMT</pubDate>
    <dc:creator>vyasakhilesh</dc:creator>
    <dc:date>2024-11-06T08:20:07Z</dc:date>
    <item>
      <title>Error Creating Table from delta location dbfs</title>
      <link>https://community.databricks.com/t5/data-engineering/error-creating-table-from-delta-location-dbfs/m-p/97869#M39564</link>
      <description>&lt;DIV&gt;&lt;DIV class=""&gt;[&lt;A class="" href="https://docs.microsoft.com/azure/databricks/error-messages/error-classes#uc_file_scheme_for_table_creation_not_supported" target="_blank" rel="noopener noreferrer"&gt;UC_FILE_SCHEME_FOR_TABLE_CREATION_NOT_SUPPORTED&lt;/A&gt;] Creating table in Unity Catalog with file scheme dbfs is not supported. Instead, please create a federated data source connection using the CREATE CONNECTION command for the same table provider, then create a catalog based on the connection with a CREATE FOREIGN CATALOG command to reference the tables therein. SQLSTATE: 0AKUC&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;File &lt;SPAN class=""&gt;&lt;A target="_blank"&gt;&amp;lt;command-1426791046668810&amp;gt;&lt;/A&gt;, line 2&lt;/SPAN&gt; &lt;SPAN&gt;1&lt;/SPAN&gt; spark&lt;SPAN&gt;.&lt;/SPAN&gt;sql(&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;CREATE DATABASE IF NOT EXISTS AdventureWorks&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;) &lt;SPAN class=""&gt;----&amp;gt; 2&lt;/SPAN&gt; spark&lt;SPAN&gt;.&lt;/SPAN&gt;sql(&lt;SPAN&gt;f&lt;/SPAN&gt;&lt;SPAN&gt;"""&lt;/SPAN&gt;&lt;SPAN&gt;CREATE TABLE AdventureWorks.ProductsExternal&lt;/SPAN&gt; &lt;SPAN&gt;3&lt;/SPAN&gt; &lt;SPAN&gt;( ProductID INT, &lt;/SPAN&gt;&lt;SPAN&gt;4&lt;/SPAN&gt; &lt;SPAN&gt;ProductName STRING,&lt;/SPAN&gt; &lt;SPAN&gt;5&lt;/SPAN&gt; &lt;SPAN&gt;Category STRING,&lt;/SPAN&gt; &lt;SPAN&gt;6&lt;/SPAN&gt; &lt;SPAN&gt;ListPrice FLOAT)&lt;/SPAN&gt; &lt;SPAN&gt;7&lt;/SPAN&gt; &lt;SPAN&gt;USING DELTA LOCATION &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;dbfs:/&lt;/SPAN&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;"""&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;format(delta_table_path)) &lt;SPAN&gt;8&lt;/SPAN&gt; spark&lt;SPAN&gt;.&lt;/SPAN&gt;sql(&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;DESCRIBE EXTENDED AdventureWorks.ProductsExternal&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;)&lt;SPAN&gt;.&lt;/SPAN&gt;show(truncate&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;False&lt;/SPAN&gt;)&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Nov 2024 08:20:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-creating-table-from-delta-location-dbfs/m-p/97869#M39564</guid>
      <dc:creator>vyasakhilesh</dc:creator>
      <dc:date>2024-11-06T08:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error Creating Table from delta location dbfs</title>
      <link>https://community.databricks.com/t5/data-engineering/error-creating-table-from-delta-location-dbfs/m-p/97992#M39579</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/131282"&gt;@vyasakhilesh&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The error you're seeing, &lt;STRONG&gt;[UC_FILE_SCHEME_FOR_TABLE_CREATION_NOT_SUPPORTED]&lt;/STRONG&gt;, occurs because &lt;STRONG&gt;Unity Catalog&lt;/STRONG&gt; in Databricks does not support creating tables directly from &lt;STRONG&gt;DBFS (Databricks File System)&lt;/STRONG&gt; locations.&lt;/P&gt;&lt;P&gt;In this case, you're trying to create a table in Unity Catalog using a DBFS path with USING DELTA LOCATION 'dbfs:/...', which Unity Catalog does not support.&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 16:18:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-creating-table-from-delta-location-dbfs/m-p/97992#M39579</guid>
      <dc:creator>agallard2</dc:creator>
      <dc:date>2024-11-06T16:18:57Z</dc:date>
    </item>
  </channel>
</rss>

