<?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: FileAlreadyExistsException error while analyzing table in Notebook in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/filealreadyexistsexception-error-while-analyzing-table-in/m-p/59821#M6488</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;, thank you for your reply!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I realized that another main difference between nyc_taxi and nyc_taxi2 is that nyc_taxi created using the UI, is a managed table, whereas nyc_taxi2 created using the SQL command is an external table. The locations are also different, nyc_taxi is stored under "&lt;SPAN&gt;dbfs:/user/hive/warehouse/myschema.db/nyc_taxi"; &lt;/SPAN&gt;nyc_taxi2 is stored under "&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;dbfs:/users/feirxu/nyc_taxi.csv&lt;/SPAN&gt;&lt;SPAN&gt;".&amp;nbsp; Could this be the reason for the error? If so, could you advise how to resolve this issue?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;I checked the documentation, and it says "With the UI, you can only create&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/lakehouse/data-objects#unmanaged-table" target="_blank" rel="noopener"&gt;external tables&lt;/A&gt;. (&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/archive/legacy/data-tab#--create-a-table" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/azure/databricks/archive/legacy/data-tab#--create-a-table&lt;/A&gt;)", why the table I created using the UI is a managed table, while the table created using the SQL commands is an external table?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Did I miss any part?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Thank you!&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 09 Feb 2024 17:35:13 GMT</pubDate>
    <dc:creator>Miasu</dc:creator>
    <dc:date>2024-02-09T17:35:13Z</dc:date>
    <item>
      <title>FileAlreadyExistsException error while analyzing table in Notebook</title>
      <link>https://community.databricks.com/t5/get-started-discussions/filealreadyexistsexception-error-while-analyzing-table-in/m-p/59728#M6486</link>
      <description>&lt;P&gt;Databricks experts,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to Databricks, and encounter an issue with the ANALYZE TABLE command in the Notebook.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created two tables&amp;nbsp;nyc_taxi and nyc_taxi2, from one csv file.&lt;/P&gt;&lt;P&gt;When executing the following command in Notebook,&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;analyze &lt;/SPAN&gt;&lt;SPAN&gt;table&lt;/SPAN&gt;&lt;SPAN&gt; nyc_taxi2 compute &lt;/SPAN&gt;&lt;SPAN&gt;statistics&lt;/SPAN&gt; &lt;SPAN&gt;for&lt;/SPAN&gt;&lt;SPAN&gt; columns passenger_count;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;DIV&gt;&lt;SPAN&gt;A&amp;nbsp;FileAlreadyExistsException error was raised, &lt;FONT color="#999999"&gt;[FileAlreadyExistsException: Operation failed: "The specified path, or an element of the path, exists and its resource type is invalid for this operation.", 409, GET,......, PathConflict, "The specified path, or an element of the path, exists and its resource type is invalid for this operation.]&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;However, the same command for the nyc_taxi table worked well, with no error raised. I also tried the SQL Editor, it worked fine with the code. Only having issues with running the command in Notebook. I'm very confused as to why this happened.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The only difference between nyc_taxi and nyc_taxi2 is that I created nyc_taxi using the UI, and created the nyc_taxi2 using the Databricks SQL commands, given below.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;CREATE&lt;/SPAN&gt; &lt;SPAN class=""&gt;TABLE&lt;/SPAN&gt; &lt;SPAN&gt;nyc_taxi2&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;vendor_id&lt;/SPAN&gt; &lt;SPAN class=""&gt;String&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;pickup_datetime&lt;/SPAN&gt; &lt;SPAN class=""&gt;timestamp&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;dropoff_datetime&lt;/SPAN&gt; &lt;SPAN class=""&gt;timestamp&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;passenger_count&lt;/SPAN&gt; &lt;SPAN class=""&gt;int&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;trip_distance&lt;/SPAN&gt; &lt;SPAN class=""&gt;double&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;pickup_longitude&lt;/SPAN&gt; &lt;SPAN class=""&gt;double&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;pickup_latitude&lt;/SPAN&gt; &lt;SPAN class=""&gt;double&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;rate_code&lt;/SPAN&gt; &lt;SPAN class=""&gt;int&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;store_and_fwd_flag&lt;/SPAN&gt; &lt;SPAN class=""&gt;string&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;dropoff_longitude&lt;/SPAN&gt; &lt;SPAN class=""&gt;double&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;dropoff_latitude&lt;/SPAN&gt; &lt;SPAN class=""&gt;double&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;payment_type&lt;/SPAN&gt; &lt;SPAN class=""&gt;string&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;fare_amount&lt;/SPAN&gt; &lt;SPAN class=""&gt;double&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;surcharge&lt;/SPAN&gt; &lt;SPAN class=""&gt;double&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;mta_tax&lt;/SPAN&gt; &lt;SPAN class=""&gt;double&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;tip_amount&lt;/SPAN&gt; &lt;SPAN class=""&gt;double&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;tolls_amount&lt;/SPAN&gt; &lt;SPAN class=""&gt;double&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;total_amount&lt;/SPAN&gt; &lt;SPAN class=""&gt;double&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;USING&lt;/SPAN&gt; &lt;SPAN&gt;CSV&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;OPTIONS&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"path"&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;"/users/myfolder/nyc_taxi.csv"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt;"header"&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;SPAN class=""&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Can anyone direct what could be the reason for this problem?&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Feb 2024 23:13:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/filealreadyexistsexception-error-while-analyzing-table-in/m-p/59728#M6486</guid>
      <dc:creator>Miasu</dc:creator>
      <dc:date>2024-02-08T23:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: FileAlreadyExistsException error while analyzing table in Notebook</title>
      <link>https://community.databricks.com/t5/get-started-discussions/filealreadyexistsexception-error-while-analyzing-table-in/m-p/59821#M6488</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;, thank you for your reply!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I realized that another main difference between nyc_taxi and nyc_taxi2 is that nyc_taxi created using the UI, is a managed table, whereas nyc_taxi2 created using the SQL command is an external table. The locations are also different, nyc_taxi is stored under "&lt;SPAN&gt;dbfs:/user/hive/warehouse/myschema.db/nyc_taxi"; &lt;/SPAN&gt;nyc_taxi2 is stored under "&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;dbfs:/users/feirxu/nyc_taxi.csv&lt;/SPAN&gt;&lt;SPAN&gt;".&amp;nbsp; Could this be the reason for the error? If so, could you advise how to resolve this issue?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;I checked the documentation, and it says "With the UI, you can only create&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/lakehouse/data-objects#unmanaged-table" target="_blank" rel="noopener"&gt;external tables&lt;/A&gt;. (&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/archive/legacy/data-tab#--create-a-table" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/azure/databricks/archive/legacy/data-tab#--create-a-table&lt;/A&gt;)", why the table I created using the UI is a managed table, while the table created using the SQL commands is an external table?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Did I miss any part?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Thank you!&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Feb 2024 17:35:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/filealreadyexistsexception-error-while-analyzing-table-in/m-p/59821#M6488</guid>
      <dc:creator>Miasu</dc:creator>
      <dc:date>2024-02-09T17:35:13Z</dc:date>
    </item>
  </channel>
</rss>

