<?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 Restore Delta table after adding columns. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/restore-delta-table-after-adding-columns/m-p/23274#M16032</link>
    <description>&lt;P&gt;At version 3 of our Delta Lake table we added a column. We later restored from version 11 back to version 10, which is now the most current version. But now when we run the table build from Azure Data Factory (ADF) on the full history of the data, we get an error at version 4 saying: "Detected deleted data from streaming source"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that if we want to do a RESTORE, we can not then go back and run our ingestion on the same ADLS directory which includes both the 0 to 3 versions of .csv files with one less column, as well as, the 4 to 10 versions that have one more column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;RESTORE TABLE table_name TO TIMESTAMP AS OF '2022-10-31 00:00:00';&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ADD COLUMNS
{"columns": "[{\"column\":{\"name\":\"my_column_name\",\"type\":\"string\",\"nullable\":true,\"metadata\":{}}}]"}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Nov 2022 22:52:42 GMT</pubDate>
    <dc:creator>B_Seibert</dc:creator>
    <dc:date>2022-11-07T22:52:42Z</dc:date>
    <item>
      <title>Restore Delta table after adding columns.</title>
      <link>https://community.databricks.com/t5/data-engineering/restore-delta-table-after-adding-columns/m-p/23274#M16032</link>
      <description>&lt;P&gt;At version 3 of our Delta Lake table we added a column. We later restored from version 11 back to version 10, which is now the most current version. But now when we run the table build from Azure Data Factory (ADF) on the full history of the data, we get an error at version 4 saying: "Detected deleted data from streaming source"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that if we want to do a RESTORE, we can not then go back and run our ingestion on the same ADLS directory which includes both the 0 to 3 versions of .csv files with one less column, as well as, the 4 to 10 versions that have one more column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;RESTORE TABLE table_name TO TIMESTAMP AS OF '2022-10-31 00:00:00';&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ADD COLUMNS
{"columns": "[{\"column\":{\"name\":\"my_column_name\",\"type\":\"string\",\"nullable\":true,\"metadata\":{}}}]"}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 22:52:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/restore-delta-table-after-adding-columns/m-p/23274#M16032</guid>
      <dc:creator>B_Seibert</dc:creator>
      <dc:date>2022-11-07T22:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Restore Delta table after adding columns.</title>
      <link>https://community.databricks.com/t5/data-engineering/restore-delta-table-after-adding-columns/m-p/23277#M16035</link>
      <description>&lt;P&gt;ignoreDeletes works.  But I recommend to other developers that you have a think aboout all of the schema change scenarios and solve this problem above as part of a complete solution to every schema change scenario, instead of dealing with it as a one-off.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 12:26:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/restore-delta-table-after-adding-columns/m-p/23277#M16035</guid>
      <dc:creator>B_Seibert</dc:creator>
      <dc:date>2022-11-21T12:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Restore Delta table after adding columns.</title>
      <link>https://community.databricks.com/t5/data-engineering/restore-delta-table-after-adding-columns/m-p/23275#M16033</link>
      <description>&lt;P&gt;Hi, Could you please ignoreDeletes. Please refer: &lt;A href="https://docs.databricks.com/structured-streaming/delta-lake.html#ignore-updates-and-deletes" alt="https://docs.databricks.com/structured-streaming/delta-lake.html#ignore-updates-and-deletes" target="_blank"&gt;https://docs.databricks.com/structured-streaming/delta-lake.html#ignore-updates-and-deletes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please let us know if this helps. &lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 07:27:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/restore-delta-table-after-adding-columns/m-p/23275#M16033</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2022-11-09T07:27:15Z</dc:date>
    </item>
  </channel>
</rss>

