Skip to content

Commit

Permalink
Ensure order of tables and relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
syou6162 committed Feb 9, 2024
1 parent 539a83c commit 3bda29d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbterd/adapters/algos/test_relationship.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ def parse(manifest, catalog, **kwargs):
logger.info(
f"Collected {len(tables)} table(s) and {len(relationships)} relationship(s)"
)
return (tables, relationships)
return (sorted(tables, key=lambda tbl: tbl.node_name), sorted(relationships, key=lambda rel: rel.name))

0 comments on commit 3bda29d

Please sign in to comment.