-
Notifications
You must be signed in to change notification settings - Fork 321
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
Multiple Parents #162
Comments
Hello @adamFinastra, thanks for pointing this out. As you noticed, the current stable version of SDV does not support Multi-parent schemas yet, but development for this feature is currently underway and the next release (which will be out this week) will introduce support for it. I'm assigning this issue to the next milestone to properly keep track of this. |
Thank you! Looking forward to the next release! |
While creating metadata for synthetic data generation using file from local folder, the relationship returns a empty list ( "relationships": [ ]) |
InvalidMetadataError: Relationship between tables (CUSTOMERSs, ORDERSs) contains an unknown primary key {'CustomerID (PK)'}. |
Description
I have 3 Tables
Product
ProductKey|P0|P1|P2
Account
AccountKey|HouseholdKey|ProductKey|A0|A1
Household
HouseholdKey|H1|H2|H3|H4|H5
The account key depends on both product and household tables. How can you define the account as having multiple parents?
The above works for 2 tables, but how can I include the household table since Account is a child of that as well?
Edit:
I have defined
account_fields = { 'HouseholdKey': { 'type': 'categorical', "ref": { "field": "HouseholdKey", "table": "household" } }, 'ProductKey': { 'type': 'categorical', "ref": { "field": "ProductKey", "table": "product" } } }
and then ran
Does this seem to be the correct way to define this mullti-parent relationship? This does not seem to return the correct results or capture the relationships between the tables when .sample_all is called.
The text was updated successfully, but these errors were encountered: