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

sdv-issue-331: Fixing Duplicate IDs when using reject-sampling #382

Merged
merged 2 commits into from
Apr 14, 2021

Conversation

amontanez24
Copy link
Contributor

@amontanez24 amontanez24 commented Apr 12, 2021

Resolves #331

"""
for name, field_metadata in self._fields_metadata.items():
if field_metadata['type'] == 'id':
data[name] = self._make_ids(field_metadata, len(data))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This returns all the ids in order. Idk if we want to randomize them, or provide the option for that

Copy link
Member

Choose a reason for hiding this comment

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

There is an issue about this #329 , we will solve that later.

@amontanez24 amontanez24 requested a review from fealho April 13, 2021 16:06
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.

It looks good. Only thing I'm concerned about are whether foreign keys are handled properly. After you check that it works I think it can be merged.

Copy link
Member

@pvk-developer pvk-developer left a comment

Choose a reason for hiding this comment

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

LGTM!

@amontanez24 amontanez24 merged commit 71fbb19 into master Apr 14, 2021
@amontanez24 amontanez24 deleted the sdv-issue-331 branch April 14, 2021 18:53
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.

Duplicate IDs when using reject-sampling
3 participants