You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the drop_unknown_references doesn't work as expected for foreign keys with null values.
This bug arises because having null values inside the foreign keys is valid, and so metadata.validate_data(data) no longer crashes.
To fix it, drop_unknown_references should check for null foreign keys and update the data accordingly, also according to its parameter drop_missing_values.
Steps to reproduce
The following snippet code currently fails while it should work
Environment Details
SDV main
Error Description
Currently, the
drop_unknown_references
doesn't work as expected for foreign keys with null values.This bug arises because having null values inside the foreign keys is valid, and so
metadata.validate_data(data)
no longer crashes.To fix it,
drop_unknown_references
should check for null foreign keys and update the data accordingly, also according to its parameterdrop_missing_values
.Steps to reproduce
The following snippet code currently fails while it should work
The text was updated successfully, but these errors were encountered: