<?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>Forem: Khandare Shubham</title>
    <description>The latest articles on Forem by Khandare Shubham (@khandare_shubham_4d9ec230).</description>
    <link>https://forem.com/khandare_shubham_4d9ec230</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%2F3671200%2Fc3d2ccd7-7560-4a6d-9569-8a42b0b4fd71.png</url>
      <title>Forem: Khandare Shubham</title>
      <link>https://forem.com/khandare_shubham_4d9ec230</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/khandare_shubham_4d9ec230"/>
    <language>en</language>
    <item>
      <title>“How I Built an End-to-End ETL Pipeline Using Databricks &amp; Delta Lake”</title>
      <dc:creator>Khandare Shubham</dc:creator>
      <pubDate>Fri, 19 Dec 2025 19:15:53 +0000</pubDate>
      <link>https://forem.com/khandare_shubham_4d9ec230/how-i-built-an-end-to-end-etl-pipeline-using-databricks-delta-lake-45nc</link>
      <guid>https://forem.com/khandare_shubham_4d9ec230/how-i-built-an-end-to-end-etl-pipeline-using-databricks-delta-lake-45nc</guid>
      <description>&lt;p&gt;In this project, I built an end-to-end ETL pipeline using Databricks and Delta Lake,&lt;br&gt;
following the Bronze–Silver–Gold architecture.&lt;/p&gt;

&lt;p&gt;The goal was to simulate a real-world data engineering pipeline with incremental&lt;br&gt;
processing, workflow orchestration, and analytics-ready datasets.&lt;/p&gt;

&lt;h3&gt;
  
  
  Tech Stack
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Databricks (Free Edition)&lt;/li&gt;
&lt;li&gt;Apache Spark (PySpark)&lt;/li&gt;
&lt;li&gt;Delta Lake&lt;/li&gt;
&lt;li&gt;SQL&lt;/li&gt;
&lt;li&gt;GitHub&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Architecture Overview
&lt;/h3&gt;

&lt;p&gt;The pipeline follows the Bronze–Silver–Gold data architecture:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bronze Layer&lt;/strong&gt;: Raw data ingestion (append-only)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Silver Layer&lt;/strong&gt;: Cleaned and deduplicated data with incremental updates using Delta MERGE&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gold Layer&lt;/strong&gt;: Aggregated business metrics optimized for analytics&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Architecture Overview
&lt;/h3&gt;

&lt;p&gt;The pipeline follows the Bronze–Silver–Gold data architecture:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bronze Layer&lt;/strong&gt;: Raw data ingestion (append-only)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Silver Layer&lt;/strong&gt;: Cleaned and deduplicated data with incremental updates using Delta MERGE&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gold Layer&lt;/strong&gt;: Aggregated business metrics optimized for analytics&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Bronze Layer
&lt;/h3&gt;

&lt;p&gt;The Bronze layer ingests raw CSV data into Delta tables in append mode.&lt;br&gt;
This layer acts as the source of truth and allows full reprocessing if downstream&lt;br&gt;
transformations fail.&lt;/p&gt;

&lt;h3&gt;
  
  
  Silver Layer
&lt;/h3&gt;

&lt;p&gt;The Silver layer performs data cleaning and deduplication.&lt;br&gt;
Incremental updates are handled using Delta Lake MERGE to ensure idempotent processing&lt;br&gt;
and avoid duplicate records.&lt;/p&gt;

&lt;h3&gt;
  
  
  Gold Layer
&lt;/h3&gt;

&lt;p&gt;The Gold layer contains aggregated business metrics such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Daily sales KPIs&lt;/li&gt;
&lt;li&gt;Customer-level metrics&lt;/li&gt;
&lt;li&gt;Product-level metrics&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Gold tables are rebuilt using overwrite mode to ensure consistent and deterministic results.&lt;/p&gt;

&lt;h3&gt;
  
  
  Workflow Orchestration
&lt;/h3&gt;

&lt;p&gt;The entire pipeline is orchestrated using Databricks Workflows.&lt;br&gt;
Tasks are executed in sequence from Bronze to Silver, followed by parallel Gold aggregations.&lt;/p&gt;

&lt;h3&gt;
  
  
  Source Code
&lt;/h3&gt;

&lt;p&gt;The complete source code is available on GitHub:&lt;br&gt;
&lt;a href="https://github.com/shubhkhandare/databricks-etl-sales" rel="noopener noreferrer"&gt;https://github.com/shubhkhandare/databricks-etl-sales&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;This project helped me understand how production-style ETL pipelines are designed&lt;br&gt;
using Databricks and Delta Lake, including incremental processing and workflow orchestration.&lt;/p&gt;

</description>
      <category>databricks</category>
      <category>sql</category>
      <category>pyspark</category>
      <category>etl</category>
    </item>
  </channel>
</rss>
