# umashankarkh/iit_r_data_pipeline_etl_elt_dag architecture

> Architecture diagram of the GitHub repository umashankarkh/iit_r_data_pipeline_etl_elt_dag, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag
- Repository: https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag

## Overview

This repository is a compact ETL/ELT strategy demo, not a general-purpose pipeline service. Its script compares pandas-side cleaning and enrichment before loading with loading raw tables first and transforming them in DuckDB; it also demonstrates full versus watermark-based incremental loads and transient versus permanent failure handling. The script is the only indexed source, so the diagram reflects its explicit operations; the checked-in database files are shown as warehouse artifacts, though the script’s connection path is an absolute path that differs from the repository path.

Main entry points: [`stagging/etl_elt.py`](https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/stagging/etl_elt.py) (ETL/ELT demo), [`warehouse/warehouse.duckdb`](https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/warehouse/warehouse.duckdb) (DuckDB warehouse), [`raw/sales.csv`](https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/raw/sales.csv) (Sales CSV), [`raw/customers.csv`](https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/raw/customers.csv) (Customers CSV)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Source data"]
  node_sales_csv["Sales CSV<br/>[sales.csv]"]
  node_customers_csv["Customers CSV<br/>[customers.csv]"]
  node_inventory_csv["Inventory CSV<br/>[inventory.csv]"]
  node_raw_warehouse[("Raw DuckDB artifact<br/>[warehouse.duckdb]")]
end

subgraph group_pipeline["Load strategies"]
  node_runner["ETL/ELT demo<br/>[etl_elt.py]"]
  node_etl["Pandas ETL<br/>[etl_elt.py]"]
  node_elt_raw["Raw-table load<br/>[etl_elt.py]"]
  node_elt_transform["DuckDB transform<br/>[etl_elt.py]"]
  node_incremental["Load comparison<br/>[etl_elt.py]"]
  node_warehouse[("DuckDB warehouse<br/>[warehouse.duckdb]")]
end

subgraph group_reliability["Failure handling"]
  node_pos_sim["POS retry simulation<br/>[etl_elt.py]"]
  node_schema_error["Schema failure demo<br/>[etl_elt.py]"]
end

node_operator(("Pipeline operator"))

node_operator -->|"runs"| node_runner
node_runner -->|"executes"| node_etl
node_runner -->|"executes"| node_elt_raw
node_runner -->|"executes"| node_elt_transform
node_runner -->|"executes"| node_incremental
node_runner -->|"executes"| node_pos_sim
node_runner -->|"executes"| node_schema_error
node_etl -->|"reads"| node_sales_csv
node_etl -->|"reads"| node_customers_csv
node_etl -->|"reads"| node_inventory_csv
node_etl -->|"writes ETL table"| node_warehouse
node_elt_raw -->|"loads raw"| node_sales_csv
node_elt_raw -->|"loads raw"| node_customers_csv
node_elt_raw -->|"loads raw"| node_inventory_csv
node_elt_raw -->|"writes raw tables"| node_warehouse
node_elt_transform -->|"reads and writes"| node_warehouse
node_incremental -->|"reads and writes"| node_warehouse
node_pos_sim -->|"retries transient error"| node_pos_sim

click node_sales_csv "https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/raw/sales.csv"
click node_customers_csv "https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/raw/customers.csv"
click node_inventory_csv "https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/raw/inventory.csv"
click node_runner "https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/stagging/etl_elt.py"
click node_etl "https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/stagging/etl_elt.py"
click node_elt_raw "https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/stagging/etl_elt.py"
click node_elt_transform "https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/stagging/etl_elt.py"
click node_incremental "https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/stagging/etl_elt.py"
click node_warehouse "https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/warehouse/warehouse.duckdb"
click node_raw_warehouse "https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/raw/warehouse.duckdb"
click node_pos_sim "https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/stagging/etl_elt.py"
click node_schema_error "https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/stagging/etl_elt.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_sales_csv,node_customers_csv,node_inventory_csv,node_raw_warehouse toneBlue
class node_runner,node_etl,node_elt_raw,node_elt_transform,node_incremental,node_warehouse toneAmber
class node_pos_sim,node_schema_error toneMint
class node_operator toneIndigo
```

## Components

### Source data

- [Sales CSV](https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/raw/sales.csv): `raw/sales.csv`
- [Customers CSV](https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/raw/customers.csv): `raw/customers.csv`
- [Inventory CSV](https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/raw/inventory.csv): `raw/inventory.csv`
- [Raw DuckDB artifact](https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/raw/warehouse.duckdb): `raw/warehouse.duckdb`

### Load strategies

- [ETL/ELT demo](https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/stagging/etl_elt.py): `stagging/etl_elt.py`
- [Pandas ETL](https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/stagging/etl_elt.py): `stagging/etl_elt.py`
- [Raw-table load](https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/stagging/etl_elt.py): `stagging/etl_elt.py`
- [DuckDB transform](https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/stagging/etl_elt.py): `stagging/etl_elt.py`
- [Load comparison](https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/stagging/etl_elt.py): `stagging/etl_elt.py`
- [DuckDB warehouse](https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/warehouse/warehouse.duckdb): `warehouse/warehouse.duckdb`

### Failure handling

- [POS retry simulation](https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/stagging/etl_elt.py): `stagging/etl_elt.py`
- [Schema failure demo](https://github.com/umashankarkh/iit_r_data_pipeline_etl_elt_dag/blob/main/stagging/etl_elt.py): `stagging/etl_elt.py`

### Other components

- **Pipeline operator**

## Connections

- Pipeline operator → ETL/ELT demo: runs (evidence: `stagging/etl_elt.py`)
- ETL/ELT demo → Pandas ETL: executes (evidence: `stagging/etl_elt.py`)
- ETL/ELT demo → Raw-table load: executes (evidence: `stagging/etl_elt.py`)
- ETL/ELT demo → DuckDB transform: executes (evidence: `stagging/etl_elt.py`)
- ETL/ELT demo → Load comparison: executes (evidence: `stagging/etl_elt.py`)
- ETL/ELT demo → POS retry simulation: executes (evidence: `stagging/etl_elt.py`)
- ETL/ELT demo → Schema failure demo: executes (evidence: `stagging/etl_elt.py`)
- Pandas ETL → Sales CSV: reads (evidence: `stagging/etl_elt.py`)
- Pandas ETL → Customers CSV: reads (evidence: `stagging/etl_elt.py`)
- Pandas ETL → Inventory CSV: reads (evidence: `stagging/etl_elt.py`)
- Pandas ETL → DuckDB warehouse: writes ETL table (evidence: `stagging/etl_elt.py`)
- Raw-table load → Sales CSV: loads raw (evidence: `stagging/etl_elt.py`)
- Raw-table load → Customers CSV: loads raw (evidence: `stagging/etl_elt.py`)
- Raw-table load → Inventory CSV: loads raw (evidence: `stagging/etl_elt.py`)
- Raw-table load → DuckDB warehouse: writes raw tables (evidence: `stagging/etl_elt.py`)
- DuckDB transform → DuckDB warehouse: reads and writes (evidence: `stagging/etl_elt.py`)
- Load comparison → DuckDB warehouse: reads and writes (evidence: `stagging/etl_elt.py`)
- POS retry simulation → POS retry simulation: retries transient error (evidence: `stagging/etl_elt.py`)
