<?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 Prevent Duplicate Entries to enter to delta lake Storage in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/prevent-duplicate-entries-to-enter-to-delta-lake-storage/m-p/19534#M13107</link>
    <description>&lt;P&gt;I have a data frame  and I   write this data frame to adls table, next day I get an updated data frame which has some records from the past also and i want to update the delta table without creating duplicate&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jun 2021 16:24:13 GMT</pubDate>
    <dc:creator>User16826994223</dc:creator>
    <dc:date>2021-06-25T16:24:13Z</dc:date>
    <item>
      <title>Prevent Duplicate Entries to enter to delta lake Storage</title>
      <link>https://community.databricks.com/t5/data-engineering/prevent-duplicate-entries-to-enter-to-delta-lake-storage/m-p/19534#M13107</link>
      <description>&lt;P&gt;I have a data frame  and I   write this data frame to adls table, next day I get an updated data frame which has some records from the past also and i want to update the delta table without creating duplicate&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 16:24:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/prevent-duplicate-entries-to-enter-to-delta-lake-storage/m-p/19534#M13107</guid>
      <dc:creator>User16826994223</dc:creator>
      <dc:date>2021-06-25T16:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Duplicate Entries to enter to delta lake Storage</title>
      <link>https://community.databricks.com/t5/data-engineering/prevent-duplicate-entries-to-enter-to-delta-lake-storage/m-p/19535#M13108</link>
      <description>&lt;P&gt;This is a task for&amp;nbsp;&lt;A href="https://docs.databricks.com/delta/delta-update.html#upsert-into-a-table-using-merge" alt="https://docs.databricks.com/delta/delta-update.html#upsert-into-a-table-using-merge" target="_blank"&gt;Merge command&lt;/A&gt;&amp;nbsp;- you define condition for merge (your unique column) and then actions.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MERGE INTO target
USING  src
ON target.column = source.column
WHEN MATCHED THEN
  UPDATE SET *
WHEN NOT MATCHED
  THEN INSERT *&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;could be your dataframe registered as temporary view):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 16:25:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/prevent-duplicate-entries-to-enter-to-delta-lake-storage/m-p/19535#M13108</guid>
      <dc:creator>User16826994223</dc:creator>
      <dc:date>2021-06-25T16:25:07Z</dc:date>
    </item>
  </channel>
</rss>

