MaxRowsPerID#
from tmlt.analytics import MaxRowsPerID
- class tmlt.analytics.MaxRowsPerID(max)#
Bases:
Constraint
A constraint limiting the number of rows associated with each ID in a table.
This constraint limits how many times each distinct value may appear in the ID column of a table with the
AddRowsWithID
protected change. For example,MaxRowsPerID(5)
guarantees that each ID appears in at most five rows. It cannot be applied to tables with other protected changes.- __post_init__()#
Check constructor arguments.