mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-21 23:13:05 +00:00
Fix column lineage nonetype error (#13432)
This commit is contained in:
parent
2e49b72ccf
commit
3b640b43b7
@ -252,17 +252,17 @@ def _build_table_lineage(
|
||||
"""
|
||||
Prepare the lineage request generator
|
||||
"""
|
||||
col_lineage = get_column_lineage(
|
||||
to_entity=to_entity,
|
||||
to_table_raw_name=str(to_table_raw_name),
|
||||
from_entity=from_entity,
|
||||
from_table_raw_name=str(from_table_raw_name),
|
||||
column_lineage_map=column_lineage_map,
|
||||
)
|
||||
lineage_details = LineageDetails(sqlQuery=query, source=lineage_source)
|
||||
if col_lineage:
|
||||
lineage_details.columnsLineage = col_lineage
|
||||
if from_entity and to_entity:
|
||||
col_lineage = get_column_lineage(
|
||||
to_entity=to_entity,
|
||||
to_table_raw_name=str(to_table_raw_name),
|
||||
from_entity=from_entity,
|
||||
from_table_raw_name=str(from_table_raw_name),
|
||||
column_lineage_map=column_lineage_map,
|
||||
)
|
||||
lineage_details = LineageDetails(sqlQuery=query, source=lineage_source)
|
||||
if col_lineage:
|
||||
lineage_details.columnsLineage = col_lineage
|
||||
lineage = AddLineageRequest(
|
||||
edge=EntitiesEdge(
|
||||
fromEntity=EntityReference(
|
||||
|
Loading…
x
Reference in New Issue
Block a user