<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: sunil</title>
    <description>The latest articles on DEV Community by sunil (@jdisunil).</description>
    <link>https://dev.to/jdisunil</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1229129%2F8dc59dc9-6be7-49fa-bdf4-c6c7a8ef62b6.png</url>
      <title>DEV Community: sunil</title>
      <link>https://dev.to/jdisunil</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jdisunil"/>
    <language>en</language>
    <item>
      <title>synapse pyspark delta lake merge scd type2 without primary key</title>
      <dc:creator>sunil</dc:creator>
      <pubDate>Fri, 08 Dec 2023 15:06:57 +0000</pubDate>
      <link>https://dev.to/jdisunil/synapse-pyspark-delta-lake-merge-scd-type2-without-primary-key-1cjh</link>
      <guid>https://dev.to/jdisunil/synapse-pyspark-delta-lake-merge-scd-type2-without-primary-key-1cjh</guid>
      <description>&lt;p&gt;*&lt;em&gt;Problem&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
I have a set of rows coming from previous process which has no primary key, and the composite keys are bound to change which are not a good case for composite key, only way the rows are unique is the whole row( including all keys and all values).  I need to implement the SCD type2 on this data. The environment is Synapse pyspark, using delta lake Merge command and more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;how I tried&lt;/strong&gt;&lt;br&gt;
Using row hash: In this case the challenge without primary/composite key is to find which rows have changed/updated. With any updated values the row hash is changing and resulting into new row.&lt;/p&gt;

&lt;p&gt;please suggest how this problem can be solved.  If you have any questions on this, please write back. &lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
