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.

max: int#

The maximum number of times each distinct value may appear in the column.

__post_init__()#

Check constructor arguments.