<?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 saveAsTable sometimes works sometimes dont in Databricks Free Edition Help</title>
    <link>https://community.databricks.com/t5/databricks-free-edition-help/saveastable-sometimes-works-sometimes-dont/m-p/98095#M21</link>
    <description>&lt;P&gt;I have the following Spark (Save As Table) example.&amp;nbsp; sometimes it works fine, sometimes it fails&lt;/P&gt;&lt;P&gt;Code below with file listed in "/temp" directory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RobDineen_0-1730992730937.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/12748i8B6E47EA6500A8AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RobDineen_0-1730992730937.png" alt="RobDineen_0-1730992730937.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This has worked fine as it is, but when I have to create a new Cluster, as I am using the community edition.&lt;/P&gt;&lt;P&gt;It fails, is there a transaction log I have to Vacuum or any other areas I need to clean up first?&lt;/P&gt;&lt;P&gt;Any help would be appreciated&lt;/P&gt;&lt;P&gt;Thank you all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Nov 2024 15:27:49 GMT</pubDate>
    <dc:creator>RobDineen</dc:creator>
    <dc:date>2024-11-07T15:27:49Z</dc:date>
    <item>
      <title>saveAsTable sometimes works sometimes dont</title>
      <link>https://community.databricks.com/t5/databricks-free-edition-help/saveastable-sometimes-works-sometimes-dont/m-p/98095#M21</link>
      <description>&lt;P&gt;I have the following Spark (Save As Table) example.&amp;nbsp; sometimes it works fine, sometimes it fails&lt;/P&gt;&lt;P&gt;Code below with file listed in "/temp" directory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RobDineen_0-1730992730937.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/12748i8B6E47EA6500A8AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RobDineen_0-1730992730937.png" alt="RobDineen_0-1730992730937.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This has worked fine as it is, but when I have to create a new Cluster, as I am using the community edition.&lt;/P&gt;&lt;P&gt;It fails, is there a transaction log I have to Vacuum or any other areas I need to clean up first?&lt;/P&gt;&lt;P&gt;Any help would be appreciated&lt;/P&gt;&lt;P&gt;Thank you all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 15:27:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/databricks-free-edition-help/saveastable-sometimes-works-sometimes-dont/m-p/98095#M21</guid>
      <dc:creator>RobDineen</dc:creator>
      <dc:date>2024-11-07T15:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: saveAsTable sometimes works sometimes dont</title>
      <link>https://community.databricks.com/t5/databricks-free-edition-help/saveastable-sometimes-works-sometimes-dont/m-p/98097#M22</link>
      <description>&lt;P&gt;if you use saveAsTable without any .format() option, it will be saved as a delta lake table.&lt;BR /&gt;You also do not specify a location so it gets saved to the default location.&amp;nbsp; I don't know what that is on community edition, but if something is already present with the same name, the write will fail.&lt;BR /&gt;You can try to use .mode("overwrite") with the write.&lt;BR /&gt;Or clean up the location first (that is of course only an option for test purposes).&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 15:29:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/databricks-free-edition-help/saveastable-sometimes-works-sometimes-dont/m-p/98097#M22</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2024-11-07T15:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: saveAsTable sometimes works sometimes dont</title>
      <link>https://community.databricks.com/t5/databricks-free-edition-help/saveastable-sometimes-works-sometimes-dont/m-p/98101#M23</link>
      <description>&lt;P&gt;I have updated the location so it is explicit.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RobDineen_0-1730993930451.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/12749i69F2F833BD947564/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RobDineen_0-1730993930451.png" alt="RobDineen_0-1730993930451.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but if I use mode("overwrite") that fails as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RobDineen_1-1730994110107.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/12750i24812AFB8F5D580D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RobDineen_1-1730994110107.png" alt="RobDineen_1-1730994110107.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 15:42:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/databricks-free-edition-help/saveastable-sometimes-works-sometimes-dont/m-p/98101#M23</guid>
      <dc:creator>RobDineen</dc:creator>
      <dc:date>2024-11-07T15:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: saveAsTable sometimes works sometimes dont</title>
      <link>https://community.databricks.com/t5/databricks-free-edition-help/saveastable-sometimes-works-sometimes-dont/m-p/98105#M24</link>
      <description>&lt;P&gt;the overwrite goes after the write.&lt;BR /&gt;What you can do is this:&lt;BR /&gt;First write to a new table like testTable1 (delta lake).&lt;BR /&gt;The run the write again using write.mode("overwrite")... on the same table, should work.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 15:51:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/databricks-free-edition-help/saveastable-sometimes-works-sometimes-dont/m-p/98105#M24</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2024-11-07T15:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: saveAsTable sometimes works sometimes dont</title>
      <link>https://community.databricks.com/t5/databricks-free-edition-help/saveastable-sometimes-works-sometimes-dont/m-p/98315#M27</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This seems to work, along with explicitly dropping the Database, and re running all code within Notebook.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 11:15:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/databricks-free-edition-help/saveastable-sometimes-works-sometimes-dont/m-p/98315#M27</guid>
      <dc:creator>RobDineen</dc:creator>
      <dc:date>2024-11-11T11:15:45Z</dc:date>
    </item>
  </channel>
</rss>

