Skip to content

AggregationConstraint

Source code in docs_src/capo_cleanrooms/types/aggregation_constraint.py
class AggregationConstraint(TypedDict, closed=True):
    column_name: (
        "capo_cleanrooms.types.analysis_rule_column_name.AnalysisRuleColumnName"
    )
    """<p>Column in aggregation constraint for which there must be a minimum number of distinct values in an output row for it to be in the query output.</p>"""
    minimum: "int"
    """<p>The minimum number of distinct values that an output row must be an aggregation of. Minimum threshold of distinct values for a specified column that must exist in an output row for it to be in the query output.</p>"""
    type: "capo_cleanrooms.types.aggregation_type.AggregationType"
    """<p>The type of aggregation the constraint allows. The only valid value is currently `COUNT_DISTINCT`.</p>"""

column_name instance-attribute

Column in aggregation constraint for which there must be a minimum number of distinct values in an output row for it to be in the query output.

minimum instance-attribute

minimum: int

The minimum number of distinct values that an output row must be an aggregation of. Minimum threshold of distinct values for a specified column that must exist in an output row for it to be in the query output.

type instance-attribute

The type of aggregation the constraint allows. The only valid value is currently `COUNT_DISTINCT`.