How janaom/gcp-data-engineering-etl-with-composer-dataflow works
This repository implements a scheduled food-orders ETL: Airflow detects incoming GCS objects, moves a selected file to a processed prefix, and launches an Apache Beam/Dataflow job. Beam cleans and splits records, then appends delivered and other orders to separate BigQuery tables. The README also describes Looker reporting and a GCS upload step. Three Airflow files represent version/operator alternatives, not a single combined DAG. Relationships are based on the shown code or README; reporting and some cloud wiring are documented rather than implemented here.
Main entry points: beam.py Beam pipeline · airflow2_BeamRunPythonPipelineOperator.py File processing · airflow.py File processing · airflow2_DataflowCreatePythonJobOperator.py Dataflow job operator
Components 17
Airflow orchestration
- Pipeline operator
airflow2_BeamRunPythonPipelineOperator.py - Dataflow job operator
airflow2_DataflowCreatePythonJobOperator.py - Airflow 1 DAG
airflow.py - Prefix sensor
airflow2_BeamRunPythonPipelineOperator.py - File processing
airflow2_BeamRunPythonPipelineOperator.py - Prefix sensor
airflow.py - File processing
airflow.py
Cloud storage
- GCS bucket
Beam processing
- Beam pipeline
beam.py - Clean records
beam.py - Status branches
beam.py - Delivered orders
beam.py - Other-status orders
beam.py
Analytics warehouse
- Delivered table
beam.py - Other orders table
beam.py
Reporting
- Looker reports
Other components
- Food orders CSV
food_daily.csv
Connections 21
- Food orders CSV → GCS bucket: uploaded to
README.md - GCS bucket → Prefix sensor: checked by
airflow2_BeamRunPythonPipelineOperator.py - Prefix sensor → File processing: gates
airflow2_BeamRunPythonPipelineOperator.py - File processing → GCS bucket: moves and deletes
airflow2_BeamRunPythonPipelineOperator.py - File processing → Pipeline operator: provides input
airflow2_BeamRunPythonPipelineOperator.py - Pipeline operator → Beam pipeline: launches
airflow2_BeamRunPythonPipelineOperator.py - GCS bucket → Beam pipeline: read by
README.md - Beam pipeline → Clean records: reads and cleans
beam.py - Clean records → Status branches: filters by status
beam.py - Status branches → Delivered orders: selects delivered
beam.py - Status branches → Other-status orders: selects others
beam.py - Delivered orders → Delivered table: writes rows
beam.py - Other-status orders → Other orders table: writes rows
beam.py - Delivered table → Looker reports: feeds reporting
README.md - Other orders table → Looker reports: feeds reporting
README.md - GCS bucket → Prefix sensor: checked by
airflow.py - Prefix sensor → File processing: gates
airflow.py - File processing → GCS bucket: copies and deletes
airflow.py - File processing → Airflow 1 DAG: returns processed path
airflow.py - Airflow 1 DAG → Beam pipeline: launches
airflow.py - Dataflow job operator → Beam pipeline: launches
airflow2_DataflowCreatePythonJobOperator.py