How tiwariajayvirendra/etl_pipeline works
ETLProject cleans order data from a source CSV, quarantines invalid rows, and writes cleaned CSV output with an optional database load. Its main workflow can run directly or be scheduled by Airflow. The README also describes automatic parser discovery and Docker-based Airflow operation. Parser modules are grouped by their cleaning responsibility; the available source excerpts show dynamic discovery and individual cleaning/quarantine behavior, but not every parser’s implementation. The commented ingestion helper is not part of the active workflow.
Main entry points: pipeline.py ETL pipeline · dag.py ETL DAG · config.py Runtime configuration · parse_date.py Date cleaning
Components 13
Orchestration
- Airflow scheduler
- ETL DAG
dag.py - ETL pipeline
pipeline.py
Data processing
- Source CSV
- Date cleaning
parsers/parse_date.py - Identity cleaning
parsers/parse_customer_id.py - Order field cleaning
parsers
Data outputs
- Cleaned CSV
- Quarantine CSVs
- SQL database
Configuration
- Runtime configuration
config.py - Pipeline logging
logger.py
Other components
- Operator
Connections 16
- Operator → Airflow scheduler: triggers DAG
README.md - Airflow scheduler → ETL DAG: schedules
README.md - ETL DAG → ETL pipeline: runs pipeline
dag.py - ETL pipeline → Source CSV: reads CSV
pipeline.py - ETL pipeline → Date cleaning: discovers and runs
pipeline.py - ETL pipeline → Identity cleaning: discovers and runs
pipeline.py - ETL pipeline → Order field cleaning: discovers and runs
pipeline.py - Date cleaning → Quarantine CSVs: writes invalid rows
parsers/parse_date.py - Identity cleaning → Quarantine CSVs: writes invalid rows
parsers/parse_customer_id.py - Order field cleaning → Quarantine CSVs: quarantines invalid rows
README.md - ETL pipeline → Cleaned CSV: writes cleaned data
pipeline.py - ETL pipeline → SQL database: optionally loads
pipeline.py - ETL pipeline → Runtime configuration: reads settings
pipeline.py - ETL DAG → Runtime configuration: reads schedule settings
dag.py - ETL pipeline → Pipeline logging: gets logger
pipeline.py - Pipeline logging → Runtime configuration: reads log path
logger.py