Dev Team Builds Tool to Auto-Generate Airflow DAGs from DataHub Metadata
Two developers created a tool called datahub-dag-generator during DataHub's Build with DataHub Agent Hackathon that automates the conversion of DataHub metadata into Airflow DAGs. The tool accepts a table name as input, traces the lineage graph backwards to identify all upstream dependencies, and generates corresponding Airflow task code. It operates in two modes: an LLM-powered agent mode using models like Claude via OpenRouter, and a script mode designed for CI pipelines that bypasses the LLM entirely. A key design choice keeps the LLM from writing code directly — it produces only a structured plan, which a separate deterministic renderer then translates into actual task code. The project is still in early stages, lacking dbt and Spark operator support, and has primarily been tested on the DataHub NYC Taxi sample dataset.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in