<?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 Incremental ingestion of Snowflake data with Delta Live Table (CDC) in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/incremental-ingestion-of-snowflake-data-with-delta-live-table/m-p/37607#M499</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have some data which are lying into Snowflake, so I want to apply CDC on them using delta live table but I am having some issues.&lt;/P&gt;&lt;P&gt;Here is what I am trying to do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;@dlt.view()
def table1():
   return spark.read.format("snowflake").options(**options).option('query', query).load()

def.create_streaming_table(target)
dlt.apply_changes(
source = 'table1'
target = 'target'
....
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same code run well if I am reading a delta table but if its snowflake am having the following error&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'org.apache.spark.sql.AalysisException: Source data for the APPLY CHANGES target 'XXXXX' must be a streaming query'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is there a solution or a workaround you can help me with?&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2023 04:52:12 GMT</pubDate>
    <dc:creator>Khalil</dc:creator>
    <dc:date>2023-07-14T04:52:12Z</dc:date>
    <item>
      <title>Incremental ingestion of Snowflake data with Delta Live Table (CDC)</title>
      <link>https://community.databricks.com/t5/get-started-discussions/incremental-ingestion-of-snowflake-data-with-delta-live-table/m-p/37607#M499</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have some data which are lying into Snowflake, so I want to apply CDC on them using delta live table but I am having some issues.&lt;/P&gt;&lt;P&gt;Here is what I am trying to do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;@dlt.view()
def table1():
   return spark.read.format("snowflake").options(**options).option('query', query).load()

def.create_streaming_table(target)
dlt.apply_changes(
source = 'table1'
target = 'target'
....
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same code run well if I am reading a delta table but if its snowflake am having the following error&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'org.apache.spark.sql.AalysisException: Source data for the APPLY CHANGES target 'XXXXX' must be a streaming query'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is there a solution or a workaround you can help me with?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 04:52:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/incremental-ingestion-of-snowflake-data-with-delta-live-table/m-p/37607#M499</guid>
      <dc:creator>Khalil</dc:creator>
      <dc:date>2023-07-14T04:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental ingestion of Snowflake data with Delta Live Table (CDC)</title>
      <link>https://community.databricks.com/t5/get-started-discussions/incremental-ingestion-of-snowflake-data-with-delta-live-table/m-p/37749#M513</link>
      <description>&lt;P&gt;The CDC for delta live works fine for delta tables, as you have noticed.&amp;nbsp; However it is not a full blown CDC implementation/software.&lt;/P&gt;&lt;P&gt;If you want to capture changes in Snowflake, you will have to implement some CDC method on Snowflake itself, and read those changes into Databricks.&lt;/P&gt;&lt;P&gt;There are several approaches to this, like using &lt;A href="https://docs.snowflake.com/en/user-guide/streams" target="_self"&gt;Snowflake Streams&lt;/A&gt;&lt;BR /&gt;or a commercial CDC software.&lt;/P&gt;&lt;P&gt;Depending on your scenario, you will also have to put some event queue between Databricks and Snowflake (like Kafka or Pulsar or ...).&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 07:43:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/incremental-ingestion-of-snowflake-data-with-delta-live-table/m-p/37749#M513</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2023-07-17T07:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental ingestion of Snowflake data with Delta Live Table (CDC)</title>
      <link>https://community.databricks.com/t5/get-started-discussions/incremental-ingestion-of-snowflake-data-with-delta-live-table/m-p/38233#M583</link>
      <description>&lt;P&gt;Ok I got the point and thank you for your respond.&lt;BR /&gt;&lt;BR /&gt;So here is how my data is organised&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have 2 tables in Snowflake&lt;UL&gt;&lt;LI&gt;table1 : weekly table containing all the good data&lt;/LI&gt;&lt;LI&gt;table2 : table contains only 1 week of logs for the changes that happened in the first data (updates, deletes, ...)&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I should be working with the table1, but as it grows fast and I can't always load it into databricks anytime in a materialised table, the idea were&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;to load the table1 once in databricks&lt;/LI&gt;&lt;LI&gt;use the table2 every week to update the table1 by using CDC with dlt&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;What do you think can be the best approach in this case if we are working with dlt?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 14:59:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/incremental-ingestion-of-snowflake-data-with-delta-live-table/m-p/38233#M583</guid>
      <dc:creator>Khalil</dc:creator>
      <dc:date>2023-07-24T14:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental ingestion of Snowflake data with Delta Live Table (CDC)</title>
      <link>https://community.databricks.com/t5/get-started-discussions/incremental-ingestion-of-snowflake-data-with-delta-live-table/m-p/38538#M611</link>
      <description>&lt;P&gt;Finally I followed steps from this blog, and everything works fine.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.databricks.com/blog/2022/04/25/simplifying-change-data-capture-with-databricks-delta-live-tables.html" target="_blank"&gt;https://www.databricks.com/blog/2022/04/25/simplifying-change-data-capture-with-databricks-delta-live-tables.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I just assumed that I have tables as sources and not flat files.&lt;BR /&gt;&lt;BR /&gt;Happy reading!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 06:25:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/incremental-ingestion-of-snowflake-data-with-delta-live-table/m-p/38538#M611</guid>
      <dc:creator>Khalil</dc:creator>
      <dc:date>2023-07-27T06:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental ingestion of Snowflake data with Delta Live Table (CDC)</title>
      <link>https://community.databricks.com/t5/get-started-discussions/incremental-ingestion-of-snowflake-data-with-delta-live-table/m-p/64321#M2839</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/61005"&gt;@Khalil&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;Can you share if you worked on Unity catalog or HMS?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 18:11:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/incremental-ingestion-of-snowflake-data-with-delta-live-table/m-p/64321#M2839</guid>
      <dc:creator>data-engineer-d</dc:creator>
      <dc:date>2024-03-21T18:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental ingestion of Snowflake data with Delta Live Table (CDC)</title>
      <link>https://community.databricks.com/t5/get-started-discussions/incremental-ingestion-of-snowflake-data-with-delta-live-table/m-p/64461#M2844</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/102648"&gt;@data-engineer-d&lt;/a&gt; ,&lt;BR /&gt;&lt;BR /&gt;I am using HMS, but at the same time I am presently experimenting UC as We are planning to use for a good data management.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Mar 2024 01:43:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/incremental-ingestion-of-snowflake-data-with-delta-live-table/m-p/64461#M2844</guid>
      <dc:creator>Khalil</dc:creator>
      <dc:date>2024-03-24T01:43:41Z</dc:date>
    </item>
  </channel>
</rss>

