Skip to content

Commit

Permalink
Not setting foreign keys if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
treff7es committed Oct 22, 2024
1 parent 657b958 commit 4552d96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@ def gen_schema_metadata(
platformSchema=MySqlDDL(tableSchema=""),
# fields=[],
fields=self.gen_schema_fields(columns, constraints),
foreignKeys=foreign_keys,
foreignKeys=foreign_keys if foreign_keys else None,
)

if self.config.lineage_parse_view_ddl or self.config.lineage_use_sql_parser:
Expand Down

0 comments on commit 4552d96

Please sign in to comment.