<?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 DLT Pipeline in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/dlt-pipeline/m-p/129023#M10563</link>
    <description>&lt;P&gt;I am working on DLT pipeline and have one question. As explained on this page (&lt;A href="https://docs.databricks.com/aws/en/dlt/tutorial-pipelines?language=Python" target="_blank"&gt;https://docs.databricks.com/aws/en/dlt/tutorial-pipelines?language=Python&lt;/A&gt;), we will end up creating 3 tables i.e. customer_cdc_bronze, customer_cdc_clean and customer. This means that in my storage account, I'll end up with 3 copies of the data. Now my tables have billions of records. Is there a way that we can create streaming table in bronze with cdc and then in silver table I can have clean data with enforced schema and also apply the cdc logic?&lt;/P&gt;</description>
    <pubDate>Wed, 20 Aug 2025 17:15:34 GMT</pubDate>
    <dc:creator>Anubhav2603</dc:creator>
    <dc:date>2025-08-20T17:15:34Z</dc:date>
    <item>
      <title>DLT Pipeline</title>
      <link>https://community.databricks.com/t5/get-started-discussions/dlt-pipeline/m-p/129023#M10563</link>
      <description>&lt;P&gt;I am working on DLT pipeline and have one question. As explained on this page (&lt;A href="https://docs.databricks.com/aws/en/dlt/tutorial-pipelines?language=Python" target="_blank"&gt;https://docs.databricks.com/aws/en/dlt/tutorial-pipelines?language=Python&lt;/A&gt;), we will end up creating 3 tables i.e. customer_cdc_bronze, customer_cdc_clean and customer. This means that in my storage account, I'll end up with 3 copies of the data. Now my tables have billions of records. Is there a way that we can create streaming table in bronze with cdc and then in silver table I can have clean data with enforced schema and also apply the cdc logic?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 17:15:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/dlt-pipeline/m-p/129023#M10563</guid>
      <dc:creator>Anubhav2603</dc:creator>
      <dc:date>2025-08-20T17:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: DLT Pipeline</title>
      <link>https://community.databricks.com/t5/get-started-discussions/dlt-pipeline/m-p/129053#M10564</link>
      <description>&lt;P&gt;With this optimized approach, I would suggest creating view for Clean table:&lt;BR /&gt;1. Bronze Table: Raw CDC data (full storage)&lt;BR /&gt;2. Clean View: No physical storage - computed on-demand&lt;BR /&gt;3. Silver Table: Final processed data with SCD2 history&lt;BR /&gt;Result: ~67% storage reduction compared to 3 full table copies!&lt;/P&gt;&lt;P&gt;Sample code:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;import dlt&lt;BR /&gt;from pyspark.sql.functions import col, expr&lt;/P&gt;&lt;P&gt;# Bronze: Raw streaming data&lt;BR /&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/97035"&gt;@Dlt&lt;/a&gt;.table&lt;BR /&gt;def customer_cdc_bronze():&lt;BR /&gt;return spark.readStream.format("cloudFiles") \&lt;BR /&gt;.option("cloudFiles.format", "json") \&lt;BR /&gt;.load("/path/to/cdc/files/")&lt;/P&gt;&lt;P&gt;# Silver: Clean view (no storage)&lt;BR /&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/97035"&gt;@Dlt&lt;/a&gt;.view&lt;BR /&gt;def customer_cdc_clean():&lt;BR /&gt;return dlt.read_stream("customer_cdc_bronze") \&lt;BR /&gt;.filter(col("customer_id").isNotNull()) \&lt;BR /&gt;.select(&lt;BR /&gt;col("customer_id"),&lt;BR /&gt;col("customer_name").alias("name"),&lt;BR /&gt;col("sequence_number")&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;# Final silver table with CDC&lt;BR /&gt;dlt.create_streaming_table("customer_silver")&lt;/P&gt;&lt;P&gt;dlt.apply_changes(&lt;BR /&gt;target="customer_silver",&lt;BR /&gt;source="customer_cdc_clean", # Using view&lt;BR /&gt;keys=["customer_id"],&lt;BR /&gt;sequence_by=col("sequence_number"),&lt;BR /&gt;stored_as_scd_type="2"&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 02:30:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/dlt-pipeline/m-p/129053#M10564</guid>
      <dc:creator>nayan_wylde</dc:creator>
      <dc:date>2025-08-21T02:30:21Z</dc:date>
    </item>
  </channel>
</rss>

