<?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: how to update not tracked column only in new row version in create_auto_cdc_flow in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-update-not-tracked-column-only-in-new-row-version-in/m-p/152781#M53876</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/198517"&gt;@rplazaman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a well-known limitation of create_auto_cdc_flow / AUTO CDC INTO — and unfortunately there is no native way to achieve exactly what you want within the API's parameters. Here's why, and what you can do about it:&lt;/P&gt;&lt;P&gt;The Core Problem&lt;BR /&gt;The track_history_except_column_list behavior is a binary choice:&lt;/P&gt;&lt;P&gt;In the list → column change does NOT trigger a new version, and the current active row is updated in-place with the new value (SCD1-like behavior for that column)&lt;BR /&gt;Not in the list → column change triggers a new version&lt;/P&gt;&lt;P&gt;There is no third option like "don't trigger a new version, but also don't update in-place."&lt;BR /&gt;&lt;A href="https://docs.databricks.com/aws/en/ldp/cdc" target="_blank" rel="noopener"&gt;https://docs.databricks.com/aws/en/ldp/cdc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Workarounds&lt;/STRONG&gt;&lt;BR /&gt;Strip the metadata column from the source before CDC&lt;BR /&gt;Pre-process your source view to exclude the metadata column entirely from the CDC flow input, then join it back after the fact using a separate pipeline step.&lt;/P&gt;&lt;P&gt;@dp.view&lt;BR /&gt;def source_for_cdc():&lt;BR /&gt;# Drop the metadata column so CDC never sees it&lt;BR /&gt;return spark.readStream.table("raw_source").drop("origin_metadata")&lt;/P&gt;&lt;P&gt;dp.create_auto_cdc_flow(&lt;BR /&gt;target="target_history",&lt;BR /&gt;source="source_for_cdc",&lt;BR /&gt;keys=["id"],&lt;BR /&gt;sequence_by="timestamp",&lt;BR /&gt;stored_as_scd_type="2",&lt;BR /&gt;# origin_metadata is simply absent - no tracking concerns&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;Then enrich the target with origin metadata in a downstream table by joining on the key + __START_AT, matching it against a separate table that tracks (key, sequence, origin_metadata).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Strip the metadata column from CDC entirely, keep it in a side table, and join it back in a downstream node. This keeps the CDC flow semantically clean (it only tracks what it should track) and gives you full control over when and how origin_metadata appears on versioned rows.&lt;BR /&gt;There is no native track_history_except_column_list + "freeze on no version change" behavior in the current API, so any solution requires pre- or post-processing outside the CDC flow itself.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2026 17:34:42 GMT</pubDate>
    <dc:creator>lingareddy_Alva</dc:creator>
    <dc:date>2026-03-31T17:34:42Z</dc:date>
    <item>
      <title>how to update not tracked column only in new row version in create_auto_cdc_flow</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-update-not-tracked-column-only-in-new-row-version-in/m-p/152771#M53874</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;I'm using&amp;nbsp;&lt;SPAN&gt;create_auto_cdc_flow, scd type 2. In source I have a metadata which tells the origin of the row. This column should not trigger new version row, so it is added to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;track_history_except_column_list.&amp;nbsp;&lt;BR /&gt;I don't want to add it to exception column list, because once a new version of row is created I would like this value to be added together with new version of the row.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;However there is an unwanted behavior, if this value is changed, and other values not (now new row created) then in target latest version of the row this value being updated to the value from source, but I would like this value in target to stay as it is and only be added if new version of row is created.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Does anybody knows how to achieve this goal?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2026 16:46:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-update-not-tracked-column-only-in-new-row-version-in/m-p/152771#M53874</guid>
      <dc:creator>rplazaman</dc:creator>
      <dc:date>2026-03-31T16:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to update not tracked column only in new row version in create_auto_cdc_flow</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-update-not-tracked-column-only-in-new-row-version-in/m-p/152781#M53876</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/198517"&gt;@rplazaman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a well-known limitation of create_auto_cdc_flow / AUTO CDC INTO — and unfortunately there is no native way to achieve exactly what you want within the API's parameters. Here's why, and what you can do about it:&lt;/P&gt;&lt;P&gt;The Core Problem&lt;BR /&gt;The track_history_except_column_list behavior is a binary choice:&lt;/P&gt;&lt;P&gt;In the list → column change does NOT trigger a new version, and the current active row is updated in-place with the new value (SCD1-like behavior for that column)&lt;BR /&gt;Not in the list → column change triggers a new version&lt;/P&gt;&lt;P&gt;There is no third option like "don't trigger a new version, but also don't update in-place."&lt;BR /&gt;&lt;A href="https://docs.databricks.com/aws/en/ldp/cdc" target="_blank" rel="noopener"&gt;https://docs.databricks.com/aws/en/ldp/cdc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Workarounds&lt;/STRONG&gt;&lt;BR /&gt;Strip the metadata column from the source before CDC&lt;BR /&gt;Pre-process your source view to exclude the metadata column entirely from the CDC flow input, then join it back after the fact using a separate pipeline step.&lt;/P&gt;&lt;P&gt;@dp.view&lt;BR /&gt;def source_for_cdc():&lt;BR /&gt;# Drop the metadata column so CDC never sees it&lt;BR /&gt;return spark.readStream.table("raw_source").drop("origin_metadata")&lt;/P&gt;&lt;P&gt;dp.create_auto_cdc_flow(&lt;BR /&gt;target="target_history",&lt;BR /&gt;source="source_for_cdc",&lt;BR /&gt;keys=["id"],&lt;BR /&gt;sequence_by="timestamp",&lt;BR /&gt;stored_as_scd_type="2",&lt;BR /&gt;# origin_metadata is simply absent - no tracking concerns&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;Then enrich the target with origin metadata in a downstream table by joining on the key + __START_AT, matching it against a separate table that tracks (key, sequence, origin_metadata).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Strip the metadata column from CDC entirely, keep it in a side table, and join it back in a downstream node. This keeps the CDC flow semantically clean (it only tracks what it should track) and gives you full control over when and how origin_metadata appears on versioned rows.&lt;BR /&gt;There is no native track_history_except_column_list + "freeze on no version change" behavior in the current API, so any solution requires pre- or post-processing outside the CDC flow itself.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2026 17:34:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-update-not-tracked-column-only-in-new-row-version-in/m-p/152781#M53876</guid>
      <dc:creator>lingareddy_Alva</dc:creator>
      <dc:date>2026-03-31T17:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to update not tracked column only in new row version in create_auto_cdc_flow</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-update-not-tracked-column-only-in-new-row-version-in/m-p/152783#M53877</link>
      <description>&lt;P&gt;This is what I was afraid, but thanks for full explanation and workaround.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2026 18:06:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-update-not-tracked-column-only-in-new-row-version-in/m-p/152783#M53877</guid>
      <dc:creator>rplazaman</dc:creator>
      <dc:date>2026-03-31T18:06:42Z</dc:date>
    </item>
  </channel>
</rss>

