# pritam1390/databricks-project-template architecture

> Architecture diagram of the GitHub repository pritam1390/databricks-project-template, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pritam1390/databricks-project-template
- Repository: https://github.com/pritam1390/databricks-project-template

## Overview

This is a reusable Databricks template for deploying environment-specific resources and running a layered data workflow. The graph includes its documented CI/CD and DDL capabilities alongside the sampled Bronze-to-Silver-to-Gold pipeline. Several resource and workflow files were not sampled, so their connections rely on README statements rather than source inspection.

Main entry points: [`scripts/run_ddl.py`](https://github.com/pritam1390/databricks-project-template/blob/dev/scripts/run_ddl.py) (DDL runner), [`.github/workflows`](https://github.com/pritam1390/databricks-project-template/tree/dev/.github/workflows) (GitHub Actions), [`src/pipelines/bronze/bronze_ingest.py`](https://github.com/pritam1390/databricks-project-template/blob/dev/src/pipelines/bronze/bronze_ingest.py) (Bronze ingestion), [`databricks.yml`](https://github.com/pritam1390/databricks-project-template/blob/dev/databricks.yml) (Bundle configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_delivery["Deployment and CI/CD"]
  node_github["GitHub Actions<br/>[workflows]"]
  node_bundle["Bundle configuration<br/>[databricks.yml]"]
  node_resources["Jobs and schemas"]
end

subgraph group_data["Data pipelines"]
  node_bronze["Bronze ingestion<br/>[bronze_ingest.py]"]
  node_audit["Audit columns<br/>[audit.py]"]
  node_silver["Silver transform"]
  node_gold["Gold aggregate<br/>[gold_aggregate.py]"]
  node_tables[("Layer tables")]
end

subgraph group_ddl["Schema management"]
  node_ddlfiles["Layer DDL"]
  node_ddlrunner["DDL runner<br/>[run_ddl.py]"]
end

node_engineer(("Project engineer"))
node_workspace["Databricks workspace"]
node_warehouse["SQL warehouse"]

node_engineer -->|"merges changes"| node_github
node_github -->|"validates and deploys"| node_bundle
node_bundle -->|"configures deployment"| node_resources
node_resources -->|"deploys jobs"| node_workspace
node_workspace -.->|"runs job"| node_bronze
node_bronze -->|"adds columns"| node_audit
node_bronze -->|"writes Bronze"| node_tables
node_silver -->|"reads Bronze, writes Silver"| node_tables
node_gold -->|"reads Silver, writes Gold"| node_tables
node_github -->|"runs DDL"| node_ddlrunner
node_ddlrunner -->|"reads statements"| node_ddlfiles
node_ddlrunner -->|"resolves target settings"| node_bundle
node_ddlrunner -->|"executes statements"| node_warehouse

click node_github "https://github.com/pritam1390/databricks-project-template/tree/dev/.github/workflows"
click node_bundle "https://github.com/pritam1390/databricks-project-template/blob/dev/databricks.yml"
click node_resources "https://github.com/pritam1390/databricks-project-template/tree/dev/resources"
click node_bronze "https://github.com/pritam1390/databricks-project-template/blob/dev/src/pipelines/bronze/bronze_ingest.py"
click node_audit "https://github.com/pritam1390/databricks-project-template/blob/dev/src/common/audit.py"
click node_silver "https://github.com/pritam1390/databricks-project-template/blob/dev/src/pipelines/silver/silver_transform.py"
click node_gold "https://github.com/pritam1390/databricks-project-template/blob/dev/src/pipelines/gold/gold_aggregate.py"
click node_ddlfiles "https://github.com/pritam1390/databricks-project-template/tree/dev/src/ddl"
click node_ddlrunner "https://github.com/pritam1390/databricks-project-template/blob/dev/scripts/run_ddl.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_github,node_bundle,node_resources toneBlue
class node_bronze,node_audit,node_silver,node_gold,node_tables toneAmber
class node_ddlfiles,node_ddlrunner toneMint
class node_engineer,node_workspace,node_warehouse toneIndigo
```

## Components

### Deployment and CI/CD

- [GitHub Actions](https://github.com/pritam1390/databricks-project-template/tree/dev/.github/workflows): `.github/workflows`
- [Bundle configuration](https://github.com/pritam1390/databricks-project-template/blob/dev/databricks.yml): `databricks.yml`
- [Jobs and schemas](https://github.com/pritam1390/databricks-project-template/tree/dev/resources): `resources`

### Data pipelines

- [Bronze ingestion](https://github.com/pritam1390/databricks-project-template/blob/dev/src/pipelines/bronze/bronze_ingest.py): `src/pipelines/bronze/bronze_ingest.py`
- [Audit columns](https://github.com/pritam1390/databricks-project-template/blob/dev/src/common/audit.py): `src/common/audit.py`
- [Silver transform](https://github.com/pritam1390/databricks-project-template/blob/dev/src/pipelines/silver/silver_transform.py): `src/pipelines/silver/silver_transform.py`
- [Gold aggregate](https://github.com/pritam1390/databricks-project-template/blob/dev/src/pipelines/gold/gold_aggregate.py): `src/pipelines/gold/gold_aggregate.py`
- **Layer tables**

### Schema management

- [Layer DDL](https://github.com/pritam1390/databricks-project-template/tree/dev/src/ddl): `src/ddl`
- [DDL runner](https://github.com/pritam1390/databricks-project-template/blob/dev/scripts/run_ddl.py): `scripts/run_ddl.py`

### Other components

- **Project engineer**
- **Databricks workspace**
- **SQL warehouse**

## Connections

- Project engineer → GitHub Actions: merges changes (evidence: `README.md`)
- GitHub Actions → Bundle configuration: validates and deploys (evidence: `README.md`)
- Bundle configuration → Jobs and schemas: configures deployment (evidence: `README.md`)
- Jobs and schemas → Databricks workspace: deploys jobs (evidence: `README.md`)
- Databricks workspace → Bronze ingestion: runs job (evidence: `README.md`)
- Bronze ingestion → Audit columns: adds columns (evidence: `src/pipelines/bronze/bronze_ingest.py`)
- Bronze ingestion → Layer tables: writes Bronze (evidence: `src/pipelines/bronze/bronze_ingest.py`)
- Silver transform → Layer tables: reads Bronze, writes Silver (evidence: `src/pipelines/silver/silver_transform.py`)
- Gold aggregate → Layer tables: reads Silver, writes Gold (evidence: `src/pipelines/gold/gold_aggregate.py`)
- GitHub Actions → DDL runner: runs DDL (evidence: `README.md`)
- DDL runner → Layer DDL: reads statements (evidence: `scripts/run_ddl.py`)
- DDL runner → Bundle configuration: resolves target settings (evidence: `scripts/run_ddl.py`)
- DDL runner → SQL warehouse: executes statements (evidence: `scripts/run_ddl.py`)
