Skip to content
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

Merged
merged 6 commits into from
Oct 24, 2024

Conversation

treff7es
Copy link
Contributor

@treff7es treff7es commented Oct 22, 2024

CleanShot 2024-10-22 at 15 01 21@2x

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Oct 22, 2024
Copy link
Collaborator

@hsheth2 hsheth2 left a 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"
Copy link
Collaborator

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,
Copy link
Collaborator

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?

@treff7es treff7es merged commit 4f6f69d into datahub-project:master Oct 24, 2024
73 checks passed
@treff7es treff7es deleted the bigquery_constraints branch October 24, 2024 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ingestion PR or Issue related to the ingestion of metadata
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants