# tharunsaicr/tharun_de architecture

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

- Interactive diagram: https://gitdiagram.com/tharunsaicr/tharun_de
- Repository: https://github.com/tharunsaicr/tharun_de

## Overview

This repository is a collection of Databricks/PySpark notebooks for enterprise data preparation and loading, not a single application with one entry point. Its principal recurring workflow is to read layered data, clean or transform it, and publish staged/trusted data or SQL tables; HR, finance, risk, and learning-and-development notebooks represent distinct subject areas. The excerpts show a headcount trusted-stage load and SQL publication, but most notebooks are unsampled, so their internal handoffs are not inferred. The README provides no additional architecture detail.

Main entry points: [`NB_CODE/kgsonedata (1)/kgsonedata/common_utilities/Service_Principle_Connection.py`](https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsonedata%20(1)/kgsonedata/common_utilities/Service_Principle_Connection.py) (Storage connections), [`NB_CODE/kgsonedataedw/kgsonedataedw/common_utilities/Service_Principle_Connection.py`](https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsonedataedw/kgsonedataedw/common_utilities/Service_Principle_Connection.py) (EDW connection), [`NB_CODE/kgsfinance (1)/kgsfinance/common_utilities/Service_Principle_Connection.py`](https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsfinance%20(1)/kgsfinance/common_utilities/Service_Principle_Connection.py) (Finance connection), [`NB_CODE/kgsfinance (1)/kgsfinance/common_utilities/pipeline move file.py`](https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsfinance%20(1)/kgsfinance/common_utilities/pipeline%20move%20file.py) (File movement)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_layers["Data layers"]
  node_adls[("ADLS storage")]
  node_layer_config["Storage connections"]
  node_edw_config["EDW connection"]
  node_finance_config["Finance connection"]
  node_file_move["File movement"]
  node_edw_landing["EDW landing"]
  node_edw_cleanup["EDW cleanup<br/>[Data_Cleanup.py]"]
end

subgraph group_people["People data"]
  node_headcount["Contingent headcount"]
  node_cleanup["Data quality cleanup"]
  node_bgv["BGV candidate data<br/>[BGV JC FTE_FTS.py]"]
  node_timestamp_cleanup["Timestamp cleanup"]
  node_onboarding["Onboarding data"]
end

subgraph group_finance["Finance data"]
  node_finance_landing["Finance landing"]
  node_finance_raw["Finance raw transforms"]
end

subgraph group_publishing["Publishing"]
  node_finance_sql["Finance SQL publishing"]
  node_onedata_sql["OneData SQL publishing"]
  node_edw_trusted["EDW trusted publishing"]
  node_sqlserver[("SQL Server")]
  node_trusted_load["Trusted table loader"]
end

node_databricks(("Databricks operator"))

node_layer_config -->|"mounts storage"| node_adls
node_finance_config -->|"mounts storage"| node_adls
node_edw_config -->|"mounts storage"| node_adls
node_file_move -->|"moves files"| node_adls
node_headcount -->|"runs notebook"| node_trusted_load
node_cleanup -->|"reads raw staging"| node_adls
node_finance_sql -->|"writes JDBC"| node_sqlserver
node_onedata_sql -->|"writes JDBC"| node_sqlserver

click node_layer_config "https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsonedata%20(1)/kgsonedata/common_utilities/Service_Principle_Connection.py"
click node_edw_config "https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsonedataedw/kgsonedataedw/common_utilities/Service_Principle_Connection.py"
click node_finance_config "https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsfinance%20(1)/kgsfinance/common_utilities/Service_Principle_Connection.py"
click node_file_move "https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsfinance%20(1)/kgsfinance/common_utilities/pipeline%20move%20file.py"
click node_headcount "https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsonedata%20(1)/kgsonedata/raw/headcount/headcount_process/HC_ContingentWorker_trustedstg.py"
click node_cleanup "https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/in-cld-prasanthg1%40kpmg.com/in-cld-prasanthg1%40kpmg.com/Data_Cleanup_to_test_LND.py"
click node_bgv "https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsonedata%20(1)/kgsonedata/raw/bgv_jc/BGV%20JC%20FTE_FTS.py"
click node_timestamp_cleanup "https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsonedata%20(1)/kgsonedata/raw/Timestamp_Debug_Data_Cleanup.py"
click node_onboarding "https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/in-cld-nithishkumar1%40kpmg.com/in-cld-nithishkumar1%40kpmg.com/(Clone)%20Onboarding%20Master.py"
click node_finance_landing "https://github.com/tharunsaicr/tharun_de/tree/main/NB_CODE/kgsfinance%20(1)/kgsfinance/landing"
click node_finance_raw "https://github.com/tharunsaicr/tharun_de/tree/main/NB_CODE/kgsfinance%20(1)/kgsfinance/raw"
click node_finance_sql "https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsfinance%20(1)/kgsfinance/trusted/Delta_to_SQL_with_Select.py"
click node_onedata_sql "https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/in-cld-nithishkumar1%40kpmg.com/in-cld-nithishkumar1%40kpmg.com/Delta_to_SQL_with_Select.py"
click node_edw_landing "https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsonedataedw/kgsonedataedw/landing/landing_to_rawstg_load.py"
click node_edw_cleanup "https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsonedataedw/kgsonedataedw/raw/Data_Cleanup.py"
click node_edw_trusted "https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsonedataedw/kgsonedataedw/trusted/Delta_to_SQL_with_Select.py"
click node_trusted_load "https://github.com/tharunsaicr/tharun_de/tree/main/NB_CODE/kgsonedata%20(1)/kgsonedata/trusted"

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_adls,node_layer_config,node_edw_config,node_finance_config,node_file_move,node_edw_landing,node_edw_cleanup toneBlue
class node_headcount,node_cleanup,node_bgv,node_timestamp_cleanup,node_onboarding toneAmber
class node_finance_landing,node_finance_raw toneMint
class node_finance_sql,node_onedata_sql,node_edw_trusted,node_sqlserver,node_trusted_load toneRose
class node_databricks toneIndigo
```

## Components

### Data layers

- **ADLS storage**
- [Storage connections](https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsonedata%20(1)/kgsonedata/common_utilities/Service_Principle_Connection.py): `NB_CODE/kgsonedata (1)/kgsonedata/common_utilities/Service_Principle_Connection.py`
- [EDW connection](https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsonedataedw/kgsonedataedw/common_utilities/Service_Principle_Connection.py): `NB_CODE/kgsonedataedw/kgsonedataedw/common_utilities/Service_Principle_Connection.py`
- [Finance connection](https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsfinance%20(1)/kgsfinance/common_utilities/Service_Principle_Connection.py): `NB_CODE/kgsfinance (1)/kgsfinance/common_utilities/Service_Principle_Connection.py`
- [File movement](https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsfinance%20(1)/kgsfinance/common_utilities/pipeline%20move%20file.py): `NB_CODE/kgsfinance (1)/kgsfinance/common_utilities/pipeline move file.py`
- [EDW landing](https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsonedataedw/kgsonedataedw/landing/landing_to_rawstg_load.py): `NB_CODE/kgsonedataedw/kgsonedataedw/landing/landing_to_rawstg_load.py`
- [EDW cleanup](https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsonedataedw/kgsonedataedw/raw/Data_Cleanup.py): `NB_CODE/kgsonedataedw/kgsonedataedw/raw/Data_Cleanup.py`

### People data

- [Contingent headcount](https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsonedata%20(1)/kgsonedata/raw/headcount/headcount_process/HC_ContingentWorker_trustedstg.py): `NB_CODE/kgsonedata (1)/kgsonedata/raw/headcount/headcount_process/HC_ContingentWorker_trustedstg.py`
- [Data quality cleanup](https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/in-cld-prasanthg1%40kpmg.com/in-cld-prasanthg1%40kpmg.com/Data_Cleanup_to_test_LND.py): `NB_CODE/in-cld-prasanthg1@kpmg.com/in-cld-prasanthg1@kpmg.com/Data_Cleanup_to_test_LND.py`
- [BGV candidate data](https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsonedata%20(1)/kgsonedata/raw/bgv_jc/BGV%20JC%20FTE_FTS.py): `NB_CODE/kgsonedata (1)/kgsonedata/raw/bgv_jc/BGV JC FTE_FTS.py`
- [Timestamp cleanup](https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsonedata%20(1)/kgsonedata/raw/Timestamp_Debug_Data_Cleanup.py): `NB_CODE/kgsonedata (1)/kgsonedata/raw/Timestamp_Debug_Data_Cleanup.py`
- [Onboarding data](https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/in-cld-nithishkumar1%40kpmg.com/in-cld-nithishkumar1%40kpmg.com/(Clone)%20Onboarding%20Master.py): `NB_CODE/in-cld-nithishkumar1@kpmg.com/in-cld-nithishkumar1@kpmg.com/(Clone) Onboarding Master.py`

### Finance data

- [Finance landing](https://github.com/tharunsaicr/tharun_de/tree/main/NB_CODE/kgsfinance%20(1)/kgsfinance/landing): `NB_CODE/kgsfinance (1)/kgsfinance/landing`
- [Finance raw transforms](https://github.com/tharunsaicr/tharun_de/tree/main/NB_CODE/kgsfinance%20(1)/kgsfinance/raw): `NB_CODE/kgsfinance (1)/kgsfinance/raw`

### Publishing

- [Finance SQL publishing](https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsfinance%20(1)/kgsfinance/trusted/Delta_to_SQL_with_Select.py): `NB_CODE/kgsfinance (1)/kgsfinance/trusted/Delta_to_SQL_with_Select.py`
- [OneData SQL publishing](https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/in-cld-nithishkumar1%40kpmg.com/in-cld-nithishkumar1%40kpmg.com/Delta_to_SQL_with_Select.py): `NB_CODE/in-cld-nithishkumar1@kpmg.com/in-cld-nithishkumar1@kpmg.com/Delta_to_SQL_with_Select.py`
- [EDW trusted publishing](https://github.com/tharunsaicr/tharun_de/blob/main/NB_CODE/kgsonedataedw/kgsonedataedw/trusted/Delta_to_SQL_with_Select.py): `NB_CODE/kgsonedataedw/kgsonedataedw/trusted/Delta_to_SQL_with_Select.py`
- **SQL Server**
- [Trusted table loader](https://github.com/tharunsaicr/tharun_de/tree/main/NB_CODE/kgsonedata%20(1)/kgsonedata/trusted): `NB_CODE/kgsonedata (1)/kgsonedata/trusted`

### Other components

- **Databricks operator**

## Connections

- Storage connections → ADLS storage: mounts storage (evidence: `NB_CODE/kgsonedata (1)/kgsonedata/common_utilities/Service_Principle_Connection.py`)
- Finance connection → ADLS storage: mounts storage (evidence: `NB_CODE/kgsfinance (1)/kgsfinance/common_utilities/Service_Principle_Connection.py`)
- EDW connection → ADLS storage: mounts storage (evidence: `NB_CODE/kgsonedataedw/kgsonedataedw/common_utilities/Service_Principle_Connection.py`)
- File movement → ADLS storage: moves files (evidence: `NB_CODE/kgsfinance (1)/kgsfinance/common_utilities/pipeline move file.py`)
- Contingent headcount → Trusted table loader: runs notebook (evidence: `NB_CODE/kgsonedata (1)/kgsonedata/raw/headcount/headcount_process/HC_ContingentWorker_trustedstg.py`)
- Data quality cleanup → ADLS storage: reads raw staging (evidence: `NB_CODE/in-cld-prasanthg1@kpmg.com/in-cld-prasanthg1@kpmg.com/Data_Cleanup_to_test_LND.py`)
- Finance SQL publishing → SQL Server: writes JDBC (evidence: `NB_CODE/kgsfinance (1)/kgsfinance/trusted/Delta_to_SQL_with_Select.py`)
- OneData SQL publishing → SQL Server: writes JDBC (evidence: `NB_CODE/in-cld-nithishkumar1@kpmg.com/in-cld-nithishkumar1@kpmg.com/Delta_to_SQL_with_Select.py`)
