<?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: Overwriting the existing table in Databricks; Mechanism and History? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/overwriting-the-existing-table-in-databricks-mechanism-and/m-p/8061#M3785</link>
    <description>&lt;P&gt;the overwrite will add new files, keep the old ones and in a log keeps track of what is current data and what is old data.&lt;/P&gt;&lt;P&gt;If the overwrite fails, you will get an error message in the spark program, and the data to be overwritten will still be the current state.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Mar 2023 11:57:29 GMT</pubDate>
    <dc:creator>-werners-</dc:creator>
    <dc:date>2023-03-09T11:57:29Z</dc:date>
    <item>
      <title>Overwriting the existing table in Databricks; Mechanism and History?</title>
      <link>https://community.databricks.com/t5/data-engineering/overwriting-the-existing-table-in-databricks-mechanism-and/m-p/8060#M3784</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume that I have a delta table stored on an Azure storage account. When new records arrive, I repeat the transformation and overwrite the existing table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    (DF.write
&amp;nbsp;
         .format("delta")
&amp;nbsp;
         .mode("overwrite")
&amp;nbsp;
         .option("path", save_path)
&amp;nbsp;
         .save()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 questions in this regard:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. What is the mechanism of overwriting?&lt;/P&gt;&lt;P&gt;Does it truncate the table and insert new records?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If any overwriting operation fails, how can I know that?&lt;/P&gt;&lt;P&gt;Assume that dataset is large and overwriting cannot be identified by looking at the table records.&lt;/P&gt;&lt;P&gt;Is there any log or history that shows whether the latest overwrite was successful?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 03:53:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/overwriting-the-existing-table-in-databricks-mechanism-and/m-p/8060#M3784</guid>
      <dc:creator>Mado</dc:creator>
      <dc:date>2023-03-09T03:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting the existing table in Databricks; Mechanism and History?</title>
      <link>https://community.databricks.com/t5/data-engineering/overwriting-the-existing-table-in-databricks-mechanism-and/m-p/8061#M3785</link>
      <description>&lt;P&gt;the overwrite will add new files, keep the old ones and in a log keeps track of what is current data and what is old data.&lt;/P&gt;&lt;P&gt;If the overwrite fails, you will get an error message in the spark program, and the data to be overwritten will still be the current state.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 11:57:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/overwriting-the-existing-table-in-databricks-mechanism-and/m-p/8061#M3785</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2023-03-09T11:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting the existing table in Databricks; Mechanism and History?</title>
      <link>https://community.databricks.com/t5/data-engineering/overwriting-the-existing-table-in-databricks-mechanism-and/m-p/8062#M3786</link>
      <description>&lt;P&gt;Thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it explained in the documentation? Could you share with me if there are any? &lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 20:45:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/overwriting-the-existing-table-in-databricks-mechanism-and/m-p/8062#M3786</guid>
      <dc:creator>Mado</dc:creator>
      <dc:date>2023-03-09T20:45:43Z</dc:date>
    </item>
  </channel>
</rss>

