File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ async def column_lineage(
6767 sources = {
6868 model : context .models [model ].render_query ()
6969 for model in context .dag .upstream (model_name )
70+ if model in context .models
7071 },
7172 )
7273 except Exception :
@@ -84,9 +85,10 @@ async def column_lineage(
8485 column_name = exp .to_column (node .name ).name
8586 if column_name in cache_column_names :
8687 column_name = cache_column_names [column_name ]
88+ dialect = context .models [table ].dialect if table in context .models else ""
8789 graph [table ] = {
8890 column_name : LineageColumn (
89- source = _get_node_source (node = node , dialect = context . models [ table ]. dialect ),
91+ source = _get_node_source (node = node , dialect = dialect ),
9092 models = _process_downstream (
9193 node .downstream ,
9294 column_name ,
You can’t perform that action at this time.
0 commit comments