Snowflake · Schema
Snowflake Warehouse
A Snowflake virtual warehouse provides the compute resources required to execute queries and perform DML operations. A warehouse can be started, suspended, resized, and configured for auto-suspend and auto-resume.
Data LakesData SharingData WarehousingDatabaseSQL
Properties
| Name | Type | Description |
|---|---|---|
| name | string | Identifier for the virtual warehouse. Must be unique within the account. |
| warehouse_type | string | Type of warehouse specifying the compute resource architecture. |
| warehouse_size | string | Size of the warehouse determining the number of compute resources per cluster. |
| wait_for_completion | string | When resizing a warehouse, block the return of the ALTER WAREHOUSE command until the resize has finished provisioning all its compute resources. |
| max_cluster_count | integer | Specifies the maximum number of clusters for a multi-cluster warehouse. For a single-cluster warehouse, this value is 1. |
| min_cluster_count | integer | Specifies the minimum number of clusters for a multi-cluster warehouse. For a single-cluster warehouse, this value is 1. |
| scaling_policy | string | Scaling policy for a multi-cluster warehouse that determines when additional clusters are started or shut down. |
| auto_suspend | integer | Number of seconds of inactivity after which a warehouse is automatically suspended. A value of 0 means the warehouse is never automatically suspended. |
| auto_resume | string | Specifies whether to automatically resume a warehouse when a SQL statement is submitted to it. |
| initially_suspended | string | Specifies whether the warehouse is created initially in the Suspended state. |
| resource_monitor | string | Specifies the name of a resource monitor that is explicitly assigned to the warehouse. When a resource monitor is explicitly assigned, the monitor controls the monthly credits used by the warehouse. |
| comment | string | Specifies a comment for the warehouse. |
| enable_query_acceleration | string | Specifies whether to enable the query acceleration service for queries that rely on this warehouse for compute resources. |
| query_acceleration_max_scale_factor | integer | Specifies the maximum scale factor for leasing compute resources for query acceleration. The scale factor is used as a multiplier based on warehouse size. |
| max_concurrency_level | integer | Object parameter that specifies the concurrency level for SQL statements executed by a warehouse cluster. |
| statement_queued_timeout_in_seconds | integer | Object parameter that specifies the time, in seconds, a SQL statement can be queued on a warehouse before it is canceled by the system. |
| statement_timeout_in_seconds | integer | Object parameter that specifies the time, in seconds, after which a running SQL statement is canceled by the system. |
| warehouse_credit_limit | integer | Credit limit that can be consumed by the warehouse. |
| target_statement_size | string | Target statement size for adaptive warehouses. |
| state | string | The current state of the warehouse. |
| started_clusters | integer | Number of clusters currently started. |
| running | integer | Number of SQL statements that are being executed by the warehouse. |
| queued | integer | Number of SQL statements that are queued for the warehouse. |
| is_default | boolean | Whether the warehouse is the default for the current user. |
| is_current | boolean | Whether the warehouse is in use for the session. Only one warehouse can be in use at a time for a session. |
| available | string | Percentage of the warehouse compute resources that are provisioned and available. |
| provisioning | string | Percentage of the warehouse compute resources that are in the process of provisioning. |
| quiescing | string | Percentage of the warehouse compute resources that are executing SQL statements but will be shut down once the queries complete. |
| other | string | Percentage of the warehouse compute resources that are in a state other than available, provisioning, or quiescing. |
| created_on | string | Date and time when the warehouse was created. |
| resumed_on | string | Date and time when the warehouse was last started or restarted. |
| updated_on | string | Date and time when the warehouse was last updated, which includes changing any of the properties of the warehouse or changing the state. |
| owner | string | Role that owns the warehouse. |
| owner_role_type | string | The type of role that owns the object. |
| budget | string | Budget associated with the warehouse. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/snowflake/refs/heads/main/json-schema/snowflake-warehouse-schema.json",
"title": "Snowflake Warehouse",
"description": "A Snowflake virtual warehouse provides the compute resources required to execute queries and perform DML operations. A warehouse can be started, suspended, resized, and configured for auto-suspend and auto-resume.",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Identifier for the virtual warehouse. Must be unique within the account.",
"minLength": 1,
"maxLength": 255
},
"warehouse_type": {
"type": "string",
"description": "Type of warehouse specifying the compute resource architecture.",
"enum": [
"STANDARD",
"SNOWPARK-OPTIMIZED"
],
"default": "STANDARD"
},
"warehouse_size": {
"type": "string",
"description": "Size of the warehouse determining the number of compute resources per cluster.",
"enum": [
"XSMALL",
"SMALL",
"MEDIUM",
"LARGE",
"XLARGE",
"XXLARGE",
"XXXLARGE",
"X4LARGE",
"X5LARGE",
"X6LARGE"
]
},
"wait_for_completion": {
"type": "string",
"description": "When resizing a warehouse, block the return of the ALTER WAREHOUSE command until the resize has finished provisioning all its compute resources.",
"enum": [
"true",
"false"
]
},
"max_cluster_count": {
"type": "integer",
"description": "Specifies the maximum number of clusters for a multi-cluster warehouse. For a single-cluster warehouse, this value is 1.",
"minimum": 1,
"maximum": 10
},
"min_cluster_count": {
"type": "integer",
"description": "Specifies the minimum number of clusters for a multi-cluster warehouse. For a single-cluster warehouse, this value is 1.",
"minimum": 1,
"maximum": 10
},
"scaling_policy": {
"type": "string",
"description": "Scaling policy for a multi-cluster warehouse that determines when additional clusters are started or shut down.",
"enum": [
"STANDARD",
"ECONOMY"
],
"default": "STANDARD"
},
"auto_suspend": {
"type": "integer",
"description": "Number of seconds of inactivity after which a warehouse is automatically suspended. A value of 0 means the warehouse is never automatically suspended.",
"minimum": 0
},
"auto_resume": {
"type": "string",
"description": "Specifies whether to automatically resume a warehouse when a SQL statement is submitted to it.",
"enum": [
"true",
"false"
]
},
"initially_suspended": {
"type": "string",
"description": "Specifies whether the warehouse is created initially in the Suspended state.",
"enum": [
"true",
"false"
]
},
"resource_monitor": {
"type": "string",
"description": "Specifies the name of a resource monitor that is explicitly assigned to the warehouse. When a resource monitor is explicitly assigned, the monitor controls the monthly credits used by the warehouse."
},
"comment": {
"type": "string",
"description": "Specifies a comment for the warehouse."
},
"enable_query_acceleration": {
"type": "string",
"description": "Specifies whether to enable the query acceleration service for queries that rely on this warehouse for compute resources.",
"enum": [
"true",
"false"
]
},
"query_acceleration_max_scale_factor": {
"type": "integer",
"description": "Specifies the maximum scale factor for leasing compute resources for query acceleration. The scale factor is used as a multiplier based on warehouse size.",
"minimum": 0,
"maximum": 100
},
"max_concurrency_level": {
"type": "integer",
"description": "Object parameter that specifies the concurrency level for SQL statements executed by a warehouse cluster.",
"minimum": 1
},
"statement_queued_timeout_in_seconds": {
"type": "integer",
"description": "Object parameter that specifies the time, in seconds, a SQL statement can be queued on a warehouse before it is canceled by the system.",
"minimum": 0
},
"statement_timeout_in_seconds": {
"type": "integer",
"description": "Object parameter that specifies the time, in seconds, after which a running SQL statement is canceled by the system.",
"minimum": 0
},
"warehouse_credit_limit": {
"type": "integer",
"description": "Credit limit that can be consumed by the warehouse."
},
"target_statement_size": {
"type": "string",
"description": "Target statement size for adaptive warehouses.",
"enum": [
"X-Small",
"Small",
"Medium",
"Large",
"X-Large",
"2X-Large",
"3X-Large",
"4X-Large",
"5X-Large",
"6X-Large"
]
},
"state": {
"type": "string",
"description": "The current state of the warehouse.",
"enum": [
"STARTED",
"STARTING",
"DYNAMIC",
"SUSPENDED",
"RESIZING",
"RESUMING",
"SUSPENDING"
],
"readOnly": true
},
"started_clusters": {
"type": "integer",
"description": "Number of clusters currently started.",
"readOnly": true
},
"running": {
"type": "integer",
"description": "Number of SQL statements that are being executed by the warehouse.",
"readOnly": true
},
"queued": {
"type": "integer",
"description": "Number of SQL statements that are queued for the warehouse.",
"readOnly": true
},
"is_default": {
"type": "boolean",
"description": "Whether the warehouse is the default for the current user.",
"readOnly": true
},
"is_current": {
"type": "boolean",
"description": "Whether the warehouse is in use for the session. Only one warehouse can be in use at a time for a session.",
"readOnly": true
},
"available": {
"type": "string",
"description": "Percentage of the warehouse compute resources that are provisioned and available.",
"readOnly": true
},
"provisioning": {
"type": "string",
"description": "Percentage of the warehouse compute resources that are in the process of provisioning.",
"readOnly": true
},
"quiescing": {
"type": "string",
"description": "Percentage of the warehouse compute resources that are executing SQL statements but will be shut down once the queries complete.",
"readOnly": true
},
"other": {
"type": "string",
"description": "Percentage of the warehouse compute resources that are in a state other than available, provisioning, or quiescing.",
"readOnly": true
},
"created_on": {
"type": "string",
"format": "date-time",
"description": "Date and time when the warehouse was created.",
"readOnly": true
},
"resumed_on": {
"type": "string",
"format": "date-time",
"description": "Date and time when the warehouse was last started or restarted.",
"readOnly": true
},
"updated_on": {
"type": "string",
"format": "date-time",
"description": "Date and time when the warehouse was last updated, which includes changing any of the properties of the warehouse or changing the state.",
"readOnly": true
},
"owner": {
"type": "string",
"description": "Role that owns the warehouse.",
"readOnly": true
},
"owner_role_type": {
"type": "string",
"description": "The type of role that owns the object.",
"readOnly": true
},
"budget": {
"type": "string",
"description": "Budget associated with the warehouse.",
"readOnly": true
}
},
"required": [
"name"
],
"additionalProperties": false
}