<?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 Setting Column Only on Insert with DLT's apply_changes CDC Merge in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/setting-column-only-on-insert-with-dlt-s-apply-changes-cdc-merge/m-p/61273#M40953</link>
    <description>&lt;P&gt;Hi Databricks Community,&lt;/P&gt;&lt;P&gt;We've encountered an issue with setting a column &lt;EM&gt;&lt;STRONG&gt;only&lt;/STRONG&gt;&lt;/EM&gt; on insert when using DLT's apply_changes CDC merge functionality. It's important to note that this capability is available when using the regular Delta merge operation, specifically through whenNotMatchedInsert option.&lt;/P&gt;&lt;P&gt;If we want to setup a `CreatedDate` on initial insert. Is there any option available to solve this when using &lt;A href="https://docs.databricks.com/en/delta-live-tables/cdc.html" target="_blank" rel="noopener"&gt;apply_changes&lt;/A&gt;, similar to how it's achievable with the regular Delta merge operation (&lt;A href="https://docs.databricks.com/en/delta/merge.html" target="_blank" rel="noopener"&gt;https://docs.databricks.com/en/delta/merge.html&lt;/A&gt;)?&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2024 15:04:33 GMT</pubDate>
    <dc:creator>Ru</dc:creator>
    <dc:date>2024-02-20T15:04:33Z</dc:date>
    <item>
      <title>Setting Column Only on Insert with DLT's apply_changes CDC Merge</title>
      <link>https://community.databricks.com/t5/data-engineering/setting-column-only-on-insert-with-dlt-s-apply-changes-cdc-merge/m-p/61273#M40953</link>
      <description>&lt;P&gt;Hi Databricks Community,&lt;/P&gt;&lt;P&gt;We've encountered an issue with setting a column &lt;EM&gt;&lt;STRONG&gt;only&lt;/STRONG&gt;&lt;/EM&gt; on insert when using DLT's apply_changes CDC merge functionality. It's important to note that this capability is available when using the regular Delta merge operation, specifically through whenNotMatchedInsert option.&lt;/P&gt;&lt;P&gt;If we want to setup a `CreatedDate` on initial insert. Is there any option available to solve this when using &lt;A href="https://docs.databricks.com/en/delta-live-tables/cdc.html" target="_blank" rel="noopener"&gt;apply_changes&lt;/A&gt;, similar to how it's achievable with the regular Delta merge operation (&lt;A href="https://docs.databricks.com/en/delta/merge.html" target="_blank" rel="noopener"&gt;https://docs.databricks.com/en/delta/merge.html&lt;/A&gt;)?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 15:04:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/setting-column-only-on-insert-with-dlt-s-apply-changes-cdc-merge/m-p/61273#M40953</guid>
      <dc:creator>Ru</dc:creator>
      <dc:date>2024-02-20T15:04:33Z</dc:date>
    </item>
  </channel>
</rss>

