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
Sometimes, I may have a primary key or PII column that is involved in a constraint. If I try to apply a custom constraint for it, it always falls back to the reject sampling strategy (using is_valid). It never uses the transform strategy (using transform and reverse_transform).
Root Cause
During the Data Processor's reverse transform, we are handling constraints first -- even before the primary keys and anonymized columns are created. This means that the constraints cannot access primary keys or PII columns.
Note that the reverse should always be in the opposite order as the forward transform. The forward happens in this order: (constraints -> primary key -> PII columns). See code
The text was updated successfully, but these errors were encountered:
npatki
added
bug
Something isn't working
new
Automatic label applied to new issues
feature:constraints
Related to inputting rules or business logic
and removed
new
Automatic label applied to new issues
labels
Jun 22, 2023
Environment Details
Error Description
Sometimes, I may have a primary key or PII column that is involved in a constraint. If I try to apply a custom constraint for it, it always falls back to the reject sampling strategy (using
is_valid
). It never uses the transform strategy (usingtransform
andreverse_transform
).Root Cause
During the Data Processor's reverse transform, we are handling constraints first -- even before the primary keys and anonymized columns are created. This means that the constraints cannot access primary keys or PII columns.
SDV/sdv/data_processing/data_processor.py
Lines 713 to 732 in 50392fa
The expected order is to do the constraints last.
Note that the reverse should always be in the opposite order as the forward transform. The forward happens in this order: (constraints -> primary key -> PII columns). See code
The text was updated successfully, but these errors were encountered: