-
Notifications
You must be signed in to change notification settings - Fork 417
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Environment Details
Please indicate the following details about the environment in which you found the bug:
- SDV version:
- Python version:
- Operating System:
Error Description
Currently, Metadata visualization always shows the parent table primary key in the relationship, even if the 'parent_primary_key' value in the relationship is a different column. The metadata visualization should show the values set by the relationship to help with visual debugging when validation fails.
Steps to reproduce
metadata = Metadata.load_from_dict({
'tables': {
'parent': {
'columns': {
'pk': {'sdtype': 'id'},
'other': {'sdtype': 'categorical'},
},
'primary_key': 'pk',
},
'child': {
'columns': {
'fk': {'sdtype': 'id'},
},
},
},
'relationships': [{
'parent_table_name': 'parent',
'child_table_name': 'child',
'parent_primary_key': 'other',
'child_foreign_key': 'fk',
}]
})
metadata.visualize()
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working