airflow icon indicating copy to clipboard operation
airflow copied to clipboard

Add data lineage graph to AssetGraph

Open guan404ming opened this issue 1 month ago • 3 comments

Related Issue

#50873

Why

  • The current asset graph doesn’t display data dependencies.

How

  • add a toggle to switch between scheduling and data lineage gragh

https://github.com/user-attachments/assets/49aacac6-7cce-4f6a-87d5-b6a3605810f2


^ Add meaningful description above Read the Pull Request Guidelines for more information. In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed. In case of a new dependency, check compliance with the ASF 3rd Party License Policy. In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

guan404ming avatar Nov 07 '25 16:11 guan404ming

Wait, so is this to show the tasks inside the Dag instead?

bbovenzi avatar Nov 20 '25 21:11 bbovenzi

Yes, that’s my current understanding. Based on the discussion in the issue, it seems the intention is to show the tasks inside the dag. But I’m not completely certain, so I’m happy to adjust the implementation if needed.

guan404ming avatar Nov 21 '25 13:11 guan404ming

I've updated the implementation to split them into two views and add a button to switch between two different graph

https://github.com/user-attachments/assets/79504e56-0dfc-48d0-8c7c-4c485532e680

guan404ming avatar Dec 09 '25 12:12 guan404ming