fixed either in lineage req (#13088)

This commit is contained in:
Onkar Ravgan 2023-09-05 18:18:16 +05:30 committed by GitHub
parent 80c11ab4f5
commit 9af14a5a1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -606,7 +606,8 @@ class DbtSource(DbtServiceSource):
entity_list=from_es_result, fetch_multiple_entities=False entity_list=from_es_result, fetch_multiple_entities=False
) )
if from_entity and to_entity: if from_entity and to_entity:
yield AddLineageRequest( yield Either(
right=AddLineageRequest(
edge=EntitiesEdge( edge=EntitiesEdge(
fromEntity=EntityReference( fromEntity=EntityReference(
id=from_entity.id.__root__, id=from_entity.id.__root__,
@ -621,6 +622,7 @@ class DbtSource(DbtServiceSource):
), ),
) )
) )
)
except Exception as exc: # pylint: disable=broad-except except Exception as exc: # pylint: disable=broad-except
logger.debug(traceback.format_exc()) logger.debug(traceback.format_exc())