<?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 Delta Table Using SQL in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/overwriting-delta-table-using-sql/m-p/25254#M17543</link>
    <description>&lt;P&gt;I think you are looking for the INSERT OVERWRITE command in Spark SQL. Check out the documentation here: &lt;A href="https://docs.databricks.com/spark/latest/spark-sql/language-manual/sql-ref-syntax-dml-insert-overwrite-table.html" target="test_blank"&gt;https://docs.databricks.com/spark/latest/spark-sql/language-manual/sql-ref-syntax-dml-insert-overwrite-table.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jun 2021 21:35:27 GMT</pubDate>
    <dc:creator>Ryan_Chynoweth</dc:creator>
    <dc:date>2021-06-18T21:35:27Z</dc:date>
    <item>
      <title>Overwriting Delta Table Using SQL</title>
      <link>https://community.databricks.com/t5/data-engineering/overwriting-delta-table-using-sql/m-p/25253#M17542</link>
      <description>&lt;P&gt;I have a delta table that is updated nightly, that I drop and recreate at the start of each day. However, this isn't ideal because every time I drop the table I lose all the info in the transaction log. Is there a way that I can do the equivalent of:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;df.write.format('delta').mode('overwrite').save(PATH)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in SQL?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 18:08:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/overwriting-delta-table-using-sql/m-p/25253#M17542</guid>
      <dc:creator>User16752241457</dc:creator>
      <dc:date>2021-06-10T18:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting Delta Table Using SQL</title>
      <link>https://community.databricks.com/t5/data-engineering/overwriting-delta-table-using-sql/m-p/25254#M17543</link>
      <description>&lt;P&gt;I think you are looking for the INSERT OVERWRITE command in Spark SQL. Check out the documentation here: &lt;A href="https://docs.databricks.com/spark/latest/spark-sql/language-manual/sql-ref-syntax-dml-insert-overwrite-table.html" target="test_blank"&gt;https://docs.databricks.com/spark/latest/spark-sql/language-manual/sql-ref-syntax-dml-insert-overwrite-table.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 21:35:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/overwriting-delta-table-using-sql/m-p/25254#M17543</guid>
      <dc:creator>Ryan_Chynoweth</dc:creator>
      <dc:date>2021-06-18T21:35:27Z</dc:date>
    </item>
  </channel>
</rss>

