AGGREGATION POLICY
Config path: /<database>/<schema>/aggregation_policy/<name>.yaml
Example:
Schema
body (str) - policy SQL expression
references(dict)object_type (str) - reference object type (e.g.
TABLE
,VIEW
)object_name (ident) - reference object name
columns (list)
{items} (ident) - optional reference column names defining "entity"
comment (str)
Usage notes
Management of aggregation policies requires active warehouse due to unavoidable POLICY_REFERENCES table function calls.
Make sure to allow aggregation for role
SYSADMIN
, especially if aggregation policy is being applied to views. Otherwise SnowDDL will have to re-create VIEW on every run due to inability to verify column data types. Example of check:CASE WHEN IS_ROLE_IN_SESSION('SYSADMIN') THEN NO_AGGREGATION_CONSTRAINT() ELSE ... END
Links
Last updated