How hsdsp9-ship-it/brightcart-capstone works
BrightCart is a Databricks retail analytics capstone. Its principal workflow generates or receives order data, ingests batch and incremental files into Bronze, enriches and upserts orders in Silver, aggregates business metrics in Gold, and presents analytics in a report. Separate branches provide raw-data profiling and streaming ingestion. The excerpts establish most batch and streaming data movements; the report’s exact Gold-table inputs and email dispatch are not fully shown, so those links are left unasserted.
Main entry points: config.py Notebook configuration · 06_streaming_silver_gold.py Streaming enrichment · 02_bronze_ingestion.py Batch Bronze · 05_autoloader_ingestion.py Auto Loader
Components 19
Data Inputs
- Synthetic data
notebooks/00_data_generation.py - Daily orders
notebooks/08_daily_data_generator.py - Raw CSV volumes
- Data profiling
notebooks/01_explore.py
Batch Analytics
- Batch Bronze
notebooks/02_bronze_ingestion.py - Bronze Delta tables
- Silver enrichment
notebooks/03_silver_enrichment.py - Enriched Silver
- Gold aggregation
notebooks/04_gold_aggregation.py - Gold Delta tables
Streaming Analytics
- Auto Loader
notebooks/05_autoloader_ingestion.py - Streaming Bronze
- Streaming enrichment
notebooks/06_streaming_silver_gold.py - Streaming Silver
Business Insights
- Business report
notebooks/07_business_analytics_report.py - HTML report
Shared Runtime
- Notebook configuration
notebooks/config.py - Notebook logging
notebooks/logging_helper.py
Other components
- Analytics user
Connections 28
- Analytics user → Synthetic data: starts generation
README.md - Synthetic data → Raw CSV volumes: writes CSVs
README.md - Analytics user → Daily orders: creates daily batch
notebooks/08_daily_data_generator.py - Daily orders → Raw CSV volumes: drops order files
notebooks/08_daily_data_generator.py - Raw CSV volumes → Data profiling: profiles inputs
notebooks/01_explore.py - Raw CSV volumes → Batch Bronze: reads CSVs
notebooks/02_bronze_ingestion.py - Batch Bronze → Bronze Delta tables: writes Delta
README.md - Bronze Delta tables → Silver enrichment: loads Bronze
notebooks/03_silver_enrichment.py - Silver enrichment → Enriched Silver: writes enriched orders
notebooks/03_silver_enrichment.py - Enriched Silver → Gold aggregation: loads Silver
notebooks/04_gold_aggregation.py - Gold aggregation → Gold Delta tables: writes aggregates
README.md - Raw CSV volumes → Auto Loader: watches incoming orders
notebooks/05_autoloader_ingestion.py - Auto Loader → Streaming Bronze: writes stream table
notebooks/05_autoloader_ingestion.py - Streaming Bronze → Streaming enrichment: reads order stream
notebooks/06_streaming_silver_gold.py - Bronze Delta tables → Streaming enrichment: loads dimensions
notebooks/06_streaming_silver_gold.py - Streaming enrichment → Streaming Silver: MERGE upserts
notebooks/06_streaming_silver_gold.py - Streaming Silver → Gold aggregation: optionally combines stream data
notebooks/04_gold_aggregation.py - Analytics user → Business report: views analysis
README.md - Business report → HTML report: writes HTML
notebooks/07_business_analytics_report.py - Batch Bronze → Notebook configuration: gets paths
notebooks/02_bronze_ingestion.py - Silver enrichment → Notebook configuration: gets table names
notebooks/03_silver_enrichment.py - Gold aggregation → Notebook configuration: gets table names
notebooks/04_gold_aggregation.py - Auto Loader → Notebook configuration: gets stream paths
notebooks/05_autoloader_ingestion.py - Streaming enrichment → Notebook configuration: gets stream paths
notebooks/06_streaming_silver_gold.py - Synthetic data → Notebook configuration: gets volume paths
notebooks/00_data_generation.py - Batch Bronze → Notebook logging: gets logger
notebooks/02_bronze_ingestion.py - Auto Loader → Notebook logging: gets logger
notebooks/05_autoloader_ingestion.py - Streaming enrichment → Notebook logging: gets logger
notebooks/06_streaming_silver_gold.py