<?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 Converting Existing Streaming Job to Delta Live Tables with Historical Backfill in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/converting-existing-streaming-job-to-delta-live-tables-with/m-p/125082#M47333</link>
    <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Description:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I’m migrating a two-stage streaming job into Delta Live Tables (DLT):&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Bronze: read from Pub/Sub → write to Bronze table&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Silver: use create_auto_cdc_flow on Bronze → upsert into Silver table&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;New data works perfectly, but I now need to backfill history into the same Silver table. I’m blocked by two DLT constraints:&lt;/FONT&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Single-flow target: you can’t have two separate flows write to the same table&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;No mixed modes: you can’t combine an append-only flow (preview) with create_auto_cdc_flow on one target&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I tried widget-driven conditional logic to switch between backfill and CDC, but no data is written during backfill.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Request:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Has anyone backfilled historical data into a DLT-managed CDC table? What workarounds or patterns did you use to load history without conflicting with the live CDC flow? Any code snippets or best practices welcome.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jul 2025 00:22:50 GMT</pubDate>
    <dc:creator>yazz</dc:creator>
    <dc:date>2025-07-14T00:22:50Z</dc:date>
    <item>
      <title>Converting Existing Streaming Job to Delta Live Tables with Historical Backfill</title>
      <link>https://community.databricks.com/t5/data-engineering/converting-existing-streaming-job-to-delta-live-tables-with/m-p/125082#M47333</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Description:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I’m migrating a two-stage streaming job into Delta Live Tables (DLT):&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Bronze: read from Pub/Sub → write to Bronze table&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Silver: use create_auto_cdc_flow on Bronze → upsert into Silver table&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;New data works perfectly, but I now need to backfill history into the same Silver table. I’m blocked by two DLT constraints:&lt;/FONT&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Single-flow target: you can’t have two separate flows write to the same table&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;No mixed modes: you can’t combine an append-only flow (preview) with create_auto_cdc_flow on one target&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I tried widget-driven conditional logic to switch between backfill and CDC, but no data is written during backfill.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Request:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Has anyone backfilled historical data into a DLT-managed CDC table? What workarounds or patterns did you use to load history without conflicting with the live CDC flow? Any code snippets or best practices welcome.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 00:22:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/converting-existing-streaming-job-to-delta-live-tables-with/m-p/125082#M47333</guid>
      <dc:creator>yazz</dc:creator>
      <dc:date>2025-07-14T00:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Existing Streaming Job to Delta Live Tables with Historical Backfill</title>
      <link>https://community.databricks.com/t5/data-engineering/converting-existing-streaming-job-to-delta-live-tables-with/m-p/125095#M47342</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/174933"&gt;@yazz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I’m wondering if you could use a similar approach to the one in the article below.&amp;nbsp; So, just backfill your bronze table first. Then, the downstream silver and gold layers will pick up the new data from the bronze layer.&lt;BR /&gt;In that approach you don't need to look for workarounds regarding DLT constraints (single-flow target and no mixed modes)&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dlt/flows-backfill" target="_blank" rel="noopener"&gt;Backfilling historical data with Lakeflow Declarative Pipelines - Azure Databricks | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 07:11:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/converting-existing-streaming-job-to-delta-live-tables-with/m-p/125095#M47342</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-07-14T07:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Existing Streaming Job to Delta Live Tables with Historical Backfill</title>
      <link>https://community.databricks.com/t5/data-engineering/converting-existing-streaming-job-to-delta-live-tables-with/m-p/125191#M47365</link>
      <description>&lt;P&gt;Thanks for the reply, Szymon.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I have seen the example, but its just that my bronze table's schema is different from my historical backup table. The bronze table has 4 columns and has json data in the columns, while historical has 11 columns with structured data. I cannot load this data into the bronze.&lt;/P&gt;&lt;P&gt;Also, the example talks only about append_flow. Technically, I need a pipeline that appends only once into the silver from backup table and then another delta pipeline that keeps upserting into the silver table.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 16:54:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/converting-existing-streaming-job-to-delta-live-tables-with/m-p/125191#M47365</guid>
      <dc:creator>yazz</dc:creator>
      <dc:date>2025-07-14T16:54:35Z</dc:date>
    </item>
  </channel>
</rss>

