<?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 creation of tables with cdc in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/creation-of-tables-with-cdc/m-p/24431#M16977</link>
    <description>&lt;P&gt;I am using cdc to create different tables, these tables can have one or more dependencies, what is the best practice to create these tables without losing records or changes in both the base table and the join tables? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;select * from &lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;									SELECT *, rank() over (partition by cola order by _commit_version desc) as rank&lt;/P&gt;&lt;P&gt;									FROM table_changes('database.table', 3)&lt;/P&gt;&lt;P&gt;									WHERE _change_type !='update_preimage'&lt;/P&gt;&lt;P&gt;					&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;) a&lt;/P&gt;&lt;P&gt;							WHERE a.rank=1&lt;/P&gt;&lt;P&gt;) as b&lt;/P&gt;&lt;P&gt;inner join &lt;/P&gt;&lt;P&gt;database.table2 as a&lt;/P&gt;&lt;P&gt;on a.cola = b.cola&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my fear is that if a change does not occur in table but in table2 it is possible that I will lose the changes in table2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Nov 2022 14:35:47 GMT</pubDate>
    <dc:creator>alexgv12</dc:creator>
    <dc:date>2022-11-01T14:35:47Z</dc:date>
    <item>
      <title>creation of tables with cdc</title>
      <link>https://community.databricks.com/t5/data-engineering/creation-of-tables-with-cdc/m-p/24431#M16977</link>
      <description>&lt;P&gt;I am using cdc to create different tables, these tables can have one or more dependencies, what is the best practice to create these tables without losing records or changes in both the base table and the join tables? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;select * from &lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;									SELECT *, rank() over (partition by cola order by _commit_version desc) as rank&lt;/P&gt;&lt;P&gt;									FROM table_changes('database.table', 3)&lt;/P&gt;&lt;P&gt;									WHERE _change_type !='update_preimage'&lt;/P&gt;&lt;P&gt;					&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;) a&lt;/P&gt;&lt;P&gt;							WHERE a.rank=1&lt;/P&gt;&lt;P&gt;) as b&lt;/P&gt;&lt;P&gt;inner join &lt;/P&gt;&lt;P&gt;database.table2 as a&lt;/P&gt;&lt;P&gt;on a.cola = b.cola&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my fear is that if a change does not occur in table but in table2 it is possible that I will lose the changes in table2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 14:35:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creation-of-tables-with-cdc/m-p/24431#M16977</guid>
      <dc:creator>alexgv12</dc:creator>
      <dc:date>2022-11-01T14:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: creation of tables with cdc</title>
      <link>https://community.databricks.com/t5/data-engineering/creation-of-tables-with-cdc/m-p/24432#M16978</link>
      <description>&lt;P&gt;more detail&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 15:00:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creation-of-tables-with-cdc/m-p/24432#M16978</guid>
      <dc:creator>alexgv12</dc:creator>
      <dc:date>2022-12-28T15:00:20Z</dc:date>
    </item>
  </channel>
</rss>

