SnowDDL
  • 👋Introduction
  • 🚩Getting started
  • 📋Main features
  • 🪤SnowDDL vs. Declarative DCM
  • In-depth guides
    • 👓Object identifiers
    • 📐Data types
    • 📦Object types
    • 🎭Role hierarchy
    • 🚧Permission model
    • 🔦Other guides
      • Administration user
      • Integrations
      • Inbound shares
      • Object OWNERSHIP
      • Safe & unsafe DDL
      • Dependency management
      • Short hash explained
      • Env Prefix explained
      • Team workflow
      • Limitations & workarounds
      • Fivetran
      • Airbyte
      • Encrypt user passwords
      • Iceberg Tables
  • Basic usage (CLI + YAML)
    • 💻CLI interface
    • 📦YAML configs
      • ACCOUNT PARAMETER
      • ACCOUNT POLICY
      • AGGREGATION POLICY
      • ALERT
      • AUTHENTICATION POLICY
      • BUSINESS ROLE
      • DATABASE
      • DYNAMIC TABLE
      • EVENT TABLE
      • EXTERNAL ACCESS INTEGRATION
      • EXTERNAL FUNCTION
      • EXTERNAL TABLE
      • FILE FORMAT
      • FUNCTION
      • HYBRID TABLE
      • ICEBERG TABLE
      • MASKING POLICY
      • MATERIALIZED VIEW
      • NETWORK POLICY
      • NETWORK RULE
      • PERMISSION MODEL
      • PIPE
      • PLACEHOLDER
      • PROCEDURE
      • PROJECTION POLICY
      • RESOURCE MONITOR
      • ROW ACCESS POLICY
      • SCHEMA
      • SECRET
      • SEQUENCE
      • SHARE (outbound)
      • STAGE
      • STAGE FILE
      • STREAM
      • TABLE
      • TASK
      • TECHNICAL ROLE
      • USER
      • VIEW
      • WAREHOUSE
    • 🏷️YAML placeholders
    • 📬YAML tag !include
    • 🔐YAML tag !decrypt
  • Single DB
    • 🦀Overview
  • Advanced usage (Python)
    • ⚙️Programmatic config
    • 🐍Architecture overview
      • 🔵Blueprints
      • 🟣Config
      • 🟠Parsers
      • 🟢Resolvers
      • 🔴Engine
    • 🏗️Query builder & formatter
  • Breaking changes log
    • 0.45.0 - March 2025
    • 0.41.0 - January 2025
    • 0.37.0 - December 2024
    • 0.36.0 - November 2024
    • 0.33.0 - October 2024
    • 0.27.0 - May 2024
  • Links
    • GitHub repository
    • PyPI package
    • YouTube tutorials
    • Changelog
    • LinkedIn profile
Powered by GitBook
On this page
  • Schema
  • Usage notes
  • Links
  1. Basic usage (CLI + YAML)
  2. YAML configs

WAREHOUSE

PreviousVIEWNextYAML placeholders

Last updated 6 months ago

Config path: /warehouse.yaml

Example:

task_wh:
  size: XSMALL
  auto_suspend: 60
multi_custer_wh:
  size: SMALL
  min_cluster_count: 1
  max_cluster_count: 4
  auto_suspend: 60

Schema

  • {key} (ident) - warehouse name

  • {value} (dict)

    • size (str) - warehouse size

    • type (str) - warehouse

    • min_cluster_count (int) - (default: 1)

    • max_cluster_count (int) - (default: 1)

    • scaling_policy (str) - (default: STANDARD)

    • auto_suspend (int) - number of idle seconds before warehouse is automatically suspended (default: 60)

    • resource_monitor (ident) - name of resource monitor managed by

    • global_resource_monitor (ident) - name of resource monitor created externally

    • enable_query_acceleration (bool) - enable

    • query_acceleration_max_scale_factor (int) - (default: 8)

    • resource_constraint (str) - (default MEMORY_X16 for Snowpark-optimized warehouses)

    • warehouse_params (dict)

      • {key} (ident) - warehouse param name

      • {value} (bool, float, int, str) - warehouse param value

    • comment (str)

Usage notes

  1. resource_monitor can only be applied by user with ACCOUNTADMIN role.

  2. All warehouses are created with INITIALLY_SUSPENDED and AUTO_RESUME enabled.

  3. When creating Snowpark-optimized warehouse, please pay attention to resource_constraint values depending on warehouse size. Default is MEMORY_16X, which requires at least MEDIUM warehouse size. For small warehouse sizes you should set MEMORY_1X or similar constraint explicitly.

Links

Values for size are available in documentation.

Scaling policy and multi-cluster warehouses require .

📦
type
SnowDDL config
query acceleration service
CREATE WAREHOUSE
Enterprise Edition or higher
CREATE WAREHOUSE
ALTER WAREHOUSE
SHOW WAREHOUSES
Parser & JSON Schema (GitHub)