How janhms/advanced-etl-azure-databricks-pyspark works
This repository is a Databricks/Spark ETL project for Formula 1 data, with successive notebook implementations ranging from basic ingestion to dynamic, SparkSQL incremental, and Delta Lake incremental loads. The main workflow mounts ADLS data, ingests and normalizes entity files, transforms race results and standings, then stores processed or presentation data back in the lake. The README documents Azure Data Factory orchestration and PowerBI as broader project capabilities; the excerpts do not show their runtime wiring, so those links are documented but not source-verified.
Main entry points: 4.Delta-Lake_Incremental_Load/ingestion Delta incremental ingestion · 1.Ingest-basic Basic file ingestion · 2.Ingestion-Dynamic-Notebooks/ingestion Dynamic ingestion · 3.SparkSQL_Incremental_Load/ingestion SparkSQL incremental ingestion
Components 18
Data ingestion
- Basic file ingestion
1.Ingest-basic - Dynamic ingestion
2.Ingestion-Dynamic-Notebooks/ingestion - SparkSQL incremental ingestion
3.SparkSQL_Incremental_Load/ingestion - Delta incremental ingestion
4.Delta-Lake_Incremental_Load/ingestion - F1 entity files
- Ingestion helpers
4.Delta-Lake_Incremental_Load/includes/common_functions.py
Transformations
- Race results transform
4.Delta-Lake_Incremental_Load/trans/1.race_results.py - Driver standings transform
4.Delta-Lake_Incremental_Load/trans/2.driver_standings.py - Constructor standings transform
4.Delta-Lake_Incremental_Load/trans/3.constructor_standings.py - Calculated race results
4.Delta-Lake_Incremental_Load/trans/4.calculated_race_results.py
Lake storage
- ADLS mounting
4.Delta-Lake_Incremental_Load/set-up/mount_adls_storage.py - Raw ADLS data
- Processed Delta and Parquet
- Presentation data
- Storage configuration
4.Delta-Lake_Incremental_Load/includes/configuration.py
Orchestration and access
- Azure Data Factory
- PowerBI
Other components
- ETL operator
Connections 26
- ETL operator → ADLS mounting: sets up access
- ADLS mounting → Raw ADLS data: mounts containers
4.Delta-Lake_Incremental_Load/set-up/mount_adls_storage.py - ETL operator → Basic file ingestion: runs notebooks
- ETL operator → Dynamic ingestion: runs notebooks
- ETL operator → SparkSQL incremental ingestion: runs notebooks
- ETL operator → Delta incremental ingestion: runs notebooks
- F1 entity files → Basic file ingestion: reads files
1.Ingest-basic/5.ingest_results_file.py - F1 entity files → Dynamic ingestion: reads files
2.Ingestion-Dynamic-Notebooks/ingestion/5.dyanmic_ingest_results_file.py - F1 entity files → SparkSQL incremental ingestion: reads files
3.SparkSQL_Incremental_Load/ingestion/5.ingest_results_file.py - F1 entity files → Delta incremental ingestion: reads dated files
4.Delta-Lake_Incremental_Load/ingestion/4.ingest_drivers_file.py - Basic file ingestion → Processed Delta and Parquet: writes Parquet
1.Ingest-basic/5.ingest_results_file.py - Dynamic ingestion → Processed Delta and Parquet: writes Parquet
2.Ingestion-Dynamic-Notebooks/ingestion/5.dyanmic_ingest_results_file.py - SparkSQL incremental ingestion → Processed Delta and Parquet: writes tables
3.SparkSQL_Incremental_Load/ingestion/5.ingest_results_file.py - Delta incremental ingestion → Processed Delta and Parquet: merges Delta
4.Delta-Lake_Incremental_Load/ingestion/5.ingest_results_file.py - Delta incremental ingestion → Ingestion helpers: calls helpers
4.Delta-Lake_Incremental_Load/ingestion/5.ingest_results_file.py - Storage configuration → Delta incremental ingestion: configures paths
- Processed Delta and Parquet → Race results transform: transforms stored data
- Processed Delta and Parquet → Driver standings transform: transforms stored data
- Processed Delta and Parquet → Constructor standings transform: transforms stored data
- Processed Delta and Parquet → Calculated race results: transforms stored data
- Race results transform → Presentation data: loads results
- Driver standings transform → Presentation data: loads standings
- Constructor standings transform → Presentation data: loads standings
- Calculated race results → Presentation data: loads results
- Azure Data Factory → Delta incremental ingestion: orchestrates notebooks
- Presentation data → PowerBI: serves analytics