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

Fix drop_unknown_references for null foreign keys #1822

Merged
merged 3 commits into from
Feb 28, 2024

Conversation

R-Palazzo
Copy link
Contributor

CU-86azg9kz9
Resolve #1820

@R-Palazzo R-Palazzo requested a review from a team as a code owner February 27, 2024 18:54
@sdv-team
Copy link
Contributor

@R-Palazzo R-Palazzo removed the request for review from a team February 27, 2024 18:55
Copy link
Contributor

@amontanez24 amontanez24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

sdv/_utils.py Outdated
@@ -271,3 +273,25 @@ def _get_rows_to_drop(metadata, data):
relationships = [rel for rel in relationships if rel not in relationships_parent]

return table_to_idx_to_drop


def _validate_foreign_keys(metadata, data):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so that this doesn't get confused with the _validate_foreign_keys method in the metadata can we call this _validate_foreign_keys_not_null or something?

Copy link
Member

@fealho fealho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work 👍

@R-Palazzo R-Palazzo merged commit a1a259c into main Feb 28, 2024
37 checks passed
@R-Palazzo R-Palazzo deleted the issue-1820-null-foreign-keys branch February 28, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix drop_unknown_references for null foreign keys
4 participants