-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fet(ingest/bigquery): Add support ingesting foreign keys and primary keys for BigQuery tables #11686
fet(ingest/bigquery): Add support ingesting foreign keys and primary keys for BigQuery tables #11686
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need any docs updates?
if constraint.constraint_type == "FOREIGN KEY" | ||
else None, | ||
referenced_dataset=constraint.referenced_schema | ||
if constraint.constraint_type == "FOREIGN KEY" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels a bit repetitive
@@ -789,6 +860,7 @@ def gen_table_dataset_workunits( | |||
yield from self.gen_dataset_workunits( | |||
table=table, | |||
columns=columns, | |||
table_constraints=table_constraints, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we be adding table constraints to the table type instead of passing it explicitly everywhere?
Checklist