<?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: Creating an SCD Type 2 Table with Auto CDC API (One-Time Load + Ongoing Updates) in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/creating-an-scd-type-2-table-with-auto-cdc-api-one-time-load/m-p/132079#M49347</link>
    <description>&lt;P&gt;Great&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/120050"&gt;@aonurdemir&lt;/a&gt;&amp;nbsp;, thanks for sharing. Could you mark your answer as a solution?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Sep 2025 07:44:16 GMT</pubDate>
    <dc:creator>szymon_dybczak</dc:creator>
    <dc:date>2025-09-16T07:44:16Z</dc:date>
    <item>
      <title>Creating an SCD Type 2 Table with Auto CDC API (One-Time Load + Ongoing Updates)</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-an-scd-type-2-table-with-auto-cdc-api-one-time-load/m-p/131981#M49309</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I’m working with two CDC tables:&lt;/P&gt;&lt;P&gt;table_x: 23,467,761 rows (and growing)&lt;/P&gt;&lt;P&gt;table_y: 27,868,173,722 rows&lt;/P&gt;&lt;P&gt;My goal is to build an SCD Type 2 table (table_z) using the Auto CDC API.&lt;/P&gt;&lt;P&gt;The workflow I’d like to achieve is:&lt;/P&gt;&lt;P&gt;Initial Load: Populate table_z using the historical data from table_y (used only once).&lt;/P&gt;&lt;P&gt;Ongoing Updates: Once the initial load is complete, keep table_z updated using the incremental hourly data from table_x.&lt;/P&gt;&lt;P&gt;Constraints / Challenges:&lt;/P&gt;&lt;P&gt;I can usually handle&amp;nbsp;append_flow + streaming tables, but I haven’t found a way to implement it cleanly with the Auto CDC API.&lt;/P&gt;&lt;P&gt;I don’t want to create a merged copy of table_x and table_y with append_flows just for the one-time bootstrap, since table_y is extremely large and would be wasteful to duplicate.&lt;/P&gt;&lt;P&gt;Has anyone set up a similar pattern? using a one-time full load from a large CDC table, followed by incremental Auto CDC updates from another table? If so, how did you approach it?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2025 12:45:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-an-scd-type-2-table-with-auto-cdc-api-one-time-load/m-p/131981#M49309</guid>
      <dc:creator>aonurdemir</dc:creator>
      <dc:date>2025-09-15T12:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an SCD Type 2 Table with Auto CDC API (One-Time Load + Ongoing Updates)</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-an-scd-type-2-table-with-auto-cdc-api-one-time-load/m-p/132077#M49345</link>
      <description>&lt;P&gt;I have solved it with the &lt;STRONG&gt;name&lt;/STRONG&gt; parameter as this:&lt;/P&gt;&lt;P&gt;dlt.create_streaming_table(name="table_z")&lt;BR /&gt;dlt.create_auto_cdc_flow(&lt;BR /&gt;name="backfill",&lt;BR /&gt;target="table_z",&lt;BR /&gt;source="table_y",&lt;BR /&gt;keys=["user_id"],&lt;BR /&gt;sequence_by=col("source_ts_ms"),&lt;BR /&gt;ignore_null_updates=False,&lt;BR /&gt;apply_as_deletes=expr("op = 'd'"),&lt;BR /&gt;except_column_list=["op", "source_ts_ms"],&lt;BR /&gt;stored_as_scd_type="2",&lt;BR /&gt;track_history_column_list=["change_date"]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;dlt.create_auto_cdc_flow(&lt;BR /&gt;name="update",&lt;BR /&gt;target="table_z",&lt;BR /&gt;source="table_x",&lt;BR /&gt;keys=["user_id"],&lt;BR /&gt;sequence_by=col("source_ts_ms"),&lt;BR /&gt;ignore_null_updates=False,&lt;BR /&gt;apply_as_deletes=expr("op = 'd'"),&lt;BR /&gt;except_column_list=["op", "source_ts_ms"],&lt;BR /&gt;stored_as_scd_type="2",&lt;BR /&gt;track_history_column_list=["change_date"]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 07:43:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-an-scd-type-2-table-with-auto-cdc-api-one-time-load/m-p/132077#M49345</guid>
      <dc:creator>aonurdemir</dc:creator>
      <dc:date>2025-09-16T07:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an SCD Type 2 Table with Auto CDC API (One-Time Load + Ongoing Updates)</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-an-scd-type-2-table-with-auto-cdc-api-one-time-load/m-p/132079#M49347</link>
      <description>&lt;P&gt;Great&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/120050"&gt;@aonurdemir&lt;/a&gt;&amp;nbsp;, thanks for sharing. Could you mark your answer as a solution?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 07:44:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-an-scd-type-2-table-with-auto-cdc-api-one-time-load/m-p/132079#M49347</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-09-16T07:44:16Z</dc:date>
    </item>
  </channel>
</rss>

