Titan Core
  • Overview
  • Getting Started
  • Working With Resources
  • Blueprint
  • GitHub Action
  • Resources
    • APIAuthenticationSecurityIntegration
    • APIIntegration
    • AccountParameter
    • AggregationPolicy
    • Alert
    • AuthenticationPolicy
    • AzureStorageIntegration
    • ComputePool
    • Database
    • DatabaseRole
    • DynamicTable
    • EmailNotificationIntegration
    • EventTable
    • ExternalAccessIntegration
    • ExternalStage
    • FailoverGroup
    • FutureGrant
    • GCSStorageIntegration
    • GenericSecret
    • GlueCatalogIntegration
    • Grant
    • GrantOnAll
    • HybridTable
    • ImageRepository
    • InternalStage
    • JSONFileFormat
    • JavascriptUDF
    • MaterializedView
    • NetworkPolicy
    • NetworkRule
    • OAuthSecret
    • ObjectStoreCatalogIntegration
    • PackagesPolicy
    • ParquetFileFormat
    • PasswordPolicy
    • PasswordSecret
    • Pipe
    • PythonStoredProcedure
    • PythonUDF
    • ReplicationGroup
    • ResourceMonitor
    • Role
    • RoleGrant
    • S3StorageIntegration
    • Schema
    • Sequence
    • Service
    • SessionPolicy
    • Share
    • SnowflakePartnerOAuthSecurityIntegration
    • SnowservicesOAuthSecurityIntegration
    • StageStream
    • Table
    • TableStream
    • Tag
    • Task
    • User
    • View
    • ViewStream
    • Warehouse
Powered by GitBook
On this page
  • Examples
  • Python
  • YAML
  • Fields
  1. Resources

AggregationPolicy

PreviousAccountParameterNextAlert

Last updated 10 months ago

Represents an aggregation policy in Snowflake, which defines constraints on aggregation operations.

Examples

Python

aggregation_policy = AggregationPolicy(
    name="some_aggregation_policy",
    body="AGGREGATION_CONSTRAINT(MIN_GROUP_SIZE => 5)",
    owner="SYSADMIN"
)

YAML

aggregation_policies:
  - name: some_aggregation_policy
    body: AGGREGATION_CONSTRAINT(MIN_GROUP_SIZE => 5)
    owner: SYSADMIN

Fields

  • name (string, required) - The name of the aggregation policy.

  • body (string, required) - The SQL expression defining the aggregation constraint.

owner (string or ) - The owner of the aggregation policy. Defaults to "SYSADMIN".

Snowflake Documentation
Role