New advertisers: 50% off your first month with code FIRSTMONTHSee slots
astronomer avatar

Tracing Downstream Lineage

Impact analysis that maps what downstream tables, DAGs, and dashboards break before a schema or DAG change.

skills.sh installs
1.1K
GitHub stars
463
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers tracing direct consumers, building a dependency tree, and assessing change risk for tables and DAGs
  • Includes criticality tiers (critical, high, medium, low), a risk table by change type, and a pre-change checklist
  • Uses af dags list and af dags source <dag_id> plus Snowflake information_schema.view_table_usage to find consumers
  • Designed for data engineers who need to check blast radius before modifying a table or DAG

Install

$ npx -y skills add astronomer/agents --skill tracing-downstream-lineage -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Downstream Lineage: Impacts

Answer the critical question: "What breaks if I change this?"

Use this BEFORE making changes to understand the blast radius.

Impact Analysis

Step 1: Identify Direct Consumers

Find everything that reads from this target:

For Tables:

  1. Search DAG source code: Look for DAGs that SELECT from this table

    • Use af dags list to get all DAGs
    • Use af dags source <dag_id> to search for table references
    • Look for: FROM target_table, JOIN target_table
  2. Check for dependent views:

    -- Snowflake
    SELECT * FROM information_schema.view_table_usage
    WHERE table_name = '<target_table>'
    
    -- Or check SHOW VIEWS and search definitions
    
  3. Look for BI tool connections:

    • Dashboards often query tables directly
    • Check for common BI patterns in table naming (rpt_, dashboard_)

On Astro

If you're running on Astro, the Lineage tab in the Astro UI provides visual dependency graphs across DAGs and datasets, making downstream impact analysis faster. It shows which DAGs consume a given dataset and their current status, reducing the need for manual source code searches.

For DAGs:

Details

Repository
github.com/astronomer/agents
Categories
Data Science & Analytics, Databases
First seen
Apr 16, 2026

More from astronomer/agents

All 24

Similar to Tracing Downstream Lineage

More Data Science & Analytics