Skip to content

Commit e8ea66a

Browse files
committed
Update
1 parent 51342aa commit e8ea66a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

text_2_sql/text_2_sql_core/src/text_2_sql_core/data_dictionary/data_dictionary_creator.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ async def extract_entity_relationships(self) -> list[EntityRelationship]:
384384

385385
if relationship.foreign_fqn not in self.entity_relationships:
386386
self.entity_relationships[relationship.foreign_fqn] = {
387-
relationship.entity: relationship.pivot()
387+
relationship.fqn: relationship.pivot()
388388
}
389389
else:
390390
if (
@@ -403,10 +403,8 @@ async def build_entity_relationship_graph(self) -> nx.DiGraph:
403403
"""A method to build a complete entity relationship graph."""
404404

405405
for fqn, foreign_entities in self.entity_relationships.items():
406-
for foreign_fqn, relationship in foreign_entities.items():
407-
self.relationship_graph.add_edge(
408-
fqn, foreign_fqn, relationship=relationship
409-
)
406+
for foreign_fqn, _ in foreign_entities.items():
407+
self.relationship_graph.add_edge(fqn, foreign_fqn)
410408

411409
def get_entity_relationships_from_graph(
412410
self, entity: str, path=None, result=None, visited=None

0 commit comments

Comments
 (0)