❖ DenormalizedTable
Use the DenormalizedTable constraint when you have a table that was created by denormalizing a parent and child table. This happens when you collapse a parent table into the child by repeating its values.

Transactions-Users table is a denormalized table that contains information about transactions and users. One user can have many transactions. Users have been collapsed into the table by repeating the User ID and Birthday.Constraint API
This functionality is in Beta. At this time, select SDV Enterprise users have been invited to use this feature.
Create a DenormalizedTable constraint
Parameters:
(required)
table_name: A string containing the name of the denormalized table(required)
denormalized_primary_key: A string containing the name of the column that represents the primary key of the denormalized, parent table. The values in this column are likely repeated as part of the denormalization process.(required)
denormalized_column_names: A list of strings containing the column names that were also a part of the denormalized, parent table. The values in these columns are also likely repeated. They should be consistent for every denormalized primary key value.
Make sure that the table and column names you provide are in your Metadata. The denormalized table may be part of a broader, multi-table dataset.
Usage
Apply the constraint to any SDV synthesizer. Then fit and sample as usual.
For more information about using predefined constraints, please see the Constraint-Augmented Generation tutorial.
Last updated