In this post we are going to cover ALTER WAREHOUSE in Snowflake.
ALTER WAREHOUSE is how you change a warehouse after it exists. Its size, its auto suspend, its cluster counts, its name, and whether it is running right now.
It looks like the dullest statement in Snowflake. Two of its forms do something the statement does not mention, and one of them switched a warehouse on while I was only trying to measure it.
We will start with the simplest change there is and build it up step by step. Every query below was run on a real Snowflake account, and every result you see is the output it gave back.
Episode 156 of the Snowflake SQL: Zero to Hero series on TechBrothersIT.
- Let's see where this capture starts
- Let's create one of our own to change
- Now let's resize it
- Now let's change several things at once
- And now UNSET, which is not what I assumed
- Now suspend, and where my file broke
- And resume, which has two forms
- Can we abort queries on a warehouse with none?
- Now the multi-cluster options, carefully
- And one more type of warehouse
- The column that tells you where a value came from
- Now a rename, and whether anything is lost
- Let's see the ways an alter gets refused
- One last thing: let's put the account back
Let's see where this capture starts
There is no sample table in this post. We are still working on the account itself.
-- There is no new table in this post either.
-- Everything here runs on the ACCOUNT.
USE DATABASE DEMO_DB;
USE SCHEMA PUBLIC;
-- Note what is NOT in this script: a USE WAREHOUSE.
-- This capture ran straight on from the last episode, and that matters
-- for the first grid below.SHOW WAREHOUSES;| name | state | type | size | min_cluster_count | max_cluster_count | started_clusters | running | queued | is_default | is_current | auto_suspend | auto_resume | available | provisioning | quiescing | other | created_on | resumed_on | updated_on | owner | comment | enable_query_acceleration | query_acceleration_max_scale_factor | resource_monitor | actives | pendings | failed | suspended | uuid | scaling_policy | owner_role_type | resource_constraint | generation | query_throughput_multiplier | max_query_performance_level | disabled_reasons | tables |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| COMPUTE_WH | STARTED | STANDARD | X-Small | 1 | 1 | 1 | 0 | 0 | Y | N | 300 | true | 100 | 0 | 0 | 0 | 2026-09-21 18:36:58.764000-07:00 | 2026-10-06 11:05:18.848000-07:00 | 2026-10-06 11:05:18.848000-07:00 | ACCOUNTADMIN | true | 8 | null | 1 | 0 | 0 | 0 | 283799204 | STANDARD | ROLE | STANDARD_GEN_2 | 2 | NULL | NULL | NULL | NULL | |
| SNOWFLAKE_LEARNING_WH | SUSPENDED | STANDARD | X-Small | 1 | 1 | 0 | 0 | 0 | N | N | 300 | true | 2026-09-21 18:33:47.899000-07:00 | 2026-09-21 18:33:47.899000-07:00 | 2026-09-21 18:33:47.913000-07:00 | ACCOUNTADMIN | Created by Snowflake during account provisioning | true | 8 | null | 0 | 0 | 0 | 1 | 283799128 | STANDARD | ROLE | STANDARD_GEN_2 | 2 | NULL | NULL | NULL | NULL | ||||
| SYSTEM$STREAMLIT_NOTEBOOK_WH | SUSPENDED | STANDARD | X-Small | 1 | 10 | 0 | 0 | 0 | N | N | 60 | true | 2026-09-21 18:33:46.101000-07:00 | 2026-09-21 18:33:46.115000-07:00 | 2026-09-21 18:33:46.136000-07:00 | ACCOUNTADMIN | true | 8 | null | 0 | 0 | 0 | 1 | 283799044 | STANDARD | ROLE | STANDARD_GEN_2 | 2 | NULL | NULL | NULL | NULL |
The same three warehouses the account came with. Now look at the session, because this is not the value you would expect.
SELECT CURRENT_WAREHOUSE() AS THE_WAREHOUSE,
CURRENT_ROLE() AS THE_ROLE,
CURRENT_VERSION() AS THE_VERSION;| THE_WAREHOUSE | THE_ROLE | THE_VERSION |
|---|---|---|
| NULL | ACCOUNTADMIN | 10.36.101 |
CURRENT_WAREHOUSE() is NULL. Not COMPUTE_WH. This capture ran in the same session as the last episode, which ended by dropping the warehouse it was standing on, and this is where that left things.
Two separate capture files agree about that value, which is how I know it was real and not a reporting quirk.
Let's create one of our own to change
We need a warehouse of our own to alter, so here is one. Extra small, 60 seconds of auto suspend, and it starts suspended.
CREATE OR REPLACE WAREHOUSE WH_T156
WAREHOUSE_SIZE = XSMALL
AUTO_SUSPEND = 60
AUTO_RESUME = TRUE
INITIALLY_SUSPENDED = TRUE
COMMENT = 'episode 156 - the one I alter';| status |
|---|
| Warehouse WH_T156 successfully created. |
And because of what we learned in the last post, that CREATE has quietly pointed the session at the new warehouse. Hold that thought, because it comes back later and it is not kind about it.
SHOW WAREHOUSES LIKE 'WH\\_T156';| name | state | type | size | min_cluster_count | max_cluster_count | started_clusters | running | queued | is_default | is_current | auto_suspend | auto_resume | available | provisioning | quiescing | other | created_on | resumed_on | updated_on | owner | comment | enable_query_acceleration | query_acceleration_max_scale_factor | resource_monitor | actives | pendings | failed | suspended | uuid | scaling_policy | owner_role_type | resource_constraint | generation | query_throughput_multiplier | max_query_performance_level | disabled_reasons | tables |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| WH_T156 | SUSPENDED | STANDARD | X-Small | 1 | 1 | 0 | 0 | 0 | N | Y | 60 | true | 2026-10-06 11:10:22.574000-07:00 | 2026-10-06 11:10:22.574000-07:00 | 2026-10-06 11:10:22.601000-07:00 | ACCOUNTADMIN | episode 156 - the one I alter | true | 8 | null | 0 | 0 | 0 | 1 | 72652554573 | STANDARD | ROLE | STANDARD_GEN_2 | 2 | NULL | NULL | NULL | NULL |
SELECT "name", "state", "size", "auto_suspend", "auto_resume", "comment"
FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));| name | state | size | auto_suspend | auto_resume | comment |
|---|---|---|---|---|---|
| WH_T156 | SUSPENDED | X-Small | 60 | true | episode 156 - the one I alter |
Suspended, extra small, auto suspend 60, and the comment we gave it. That is our starting point for everything below.
Now let's resize it
The simplest alter there is. Set the size to SMALL, on a warehouse that is currently asleep.
ALTER WAREHOUSE WH_T156 SET WAREHOUSE_SIZE = SMALL;| status |
|---|
| Statement executed successfully. |
Statement executed successfully. Now let's ask what it looks like.
SHOW WAREHOUSES LIKE 'WH\\_T156';| name | state | type | size | min_cluster_count | max_cluster_count | started_clusters | running | queued | is_default | is_current | auto_suspend | auto_resume | available | provisioning | quiescing | other | created_on | resumed_on | updated_on | owner | comment | enable_query_acceleration | query_acceleration_max_scale_factor | resource_monitor | actives | pendings | failed | suspended | uuid | scaling_policy | owner_role_type | resource_constraint | generation | query_throughput_multiplier | max_query_performance_level | disabled_reasons | tables |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| WH_T156 | STARTED | STANDARD | Small | 1 | 1 | 1 | 0 | 0 | N | Y | 60 | true | 100 | 0 | 0 | 0 | 2026-10-06 11:10:22.574000-07:00 | 2026-10-06 11:10:24.571000-07:00 | 2026-10-06 11:10:24.572000-07:00 | ACCOUNTADMIN | episode 156 - the one I alter | true | 8 | null | 2 | 0 | 0 | 0 | 72652554573 | STANDARD | ROLE | STANDARD_GEN_2 | 2 | NULL | NULL | NULL | NULL |
SELECT "name", "state", "size" FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));| name | state | size |
|---|---|---|
| WH_T156 | STARTED | Small |
Small, as asked. And have a look at the state. STARTED.
It was suspended a moment ago. We asked for a resize and it woke up. Nothing in that statement mentions state at all.
Resizing a suspended warehouse starts it. So a statement you ran to change a setting has put you on the clock, and if you were only looking at the warehouse rather than using it, you are now paying for it. Suspend it again afterwards, or check the state before you walk away.
Let's put the size back to the smallest there is.
ALTER WAREHOUSE WH_T156 SET WAREHOUSE_SIZE = XSMALL;| status |
|---|
| Statement executed successfully. |
SELECT "name", "state", "size"
FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));000904 (42000): SQL compilation error: error line 1 at position 7 invalid identifier '"name"'
000904, invalid identifier "name". That is my reader, not the alter. RESULT_SCAN reads the statement before it, and the statement before it was an ALTER, which returns a status and not a grid.
SHOW WAREHOUSES LIKE 'WH\\_T156';| name | state | type | size | min_cluster_count | max_cluster_count | started_clusters | running | queued | is_default | is_current | auto_suspend | auto_resume | available | provisioning | quiescing | other | created_on | resumed_on | updated_on | owner | comment | enable_query_acceleration | query_acceleration_max_scale_factor | resource_monitor | actives | pendings | failed | suspended | uuid | scaling_policy | owner_role_type | resource_constraint | generation | query_throughput_multiplier | max_query_performance_level | disabled_reasons | tables |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| WH_T156 | STARTED | STANDARD | X-Small | 1 | 1 | 1 | 0 | 0 | N | Y | 60 | true | 100 | 0 | 0 | 0 | 2026-10-06 11:10:22.574000-07:00 | 2026-10-06 11:10:24.571000-07:00 | 2026-10-06 11:10:25.946000-07:00 | ACCOUNTADMIN | episode 156 - the one I alter | true | 8 | null | 1 | 0 | 0 | 0 | 72652554573 | STANDARD | ROLE | STANDARD_GEN_2 | 2 | NULL | NULL | NULL | NULL |
Asked properly, and it did go back to X-Small.
Now let's change several things at once
One SET can carry several properties, separated by commas, and that is the normal way to do this.
ALTER WAREHOUSE WH_T156 SET
AUTO_SUSPEND = 120,
AUTO_RESUME = FALSE,
COMMENT = 'changed three things at once';| status |
|---|
| Statement executed successfully. |
SHOW WAREHOUSES LIKE 'WH\\_T156';| name | state | type | size | min_cluster_count | max_cluster_count | started_clusters | running | queued | is_default | is_current | auto_suspend | auto_resume | available | provisioning | quiescing | other | created_on | resumed_on | updated_on | owner | comment | enable_query_acceleration | query_acceleration_max_scale_factor | resource_monitor | actives | pendings | failed | suspended | uuid | scaling_policy | owner_role_type | resource_constraint | generation | query_throughput_multiplier | max_query_performance_level | disabled_reasons | tables |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| WH_T156 | STARTED | STANDARD | X-Small | 1 | 1 | 1 | 0 | 0 | N | Y | 120 | false | 100 | 0 | 0 | 0 | 2026-10-06 11:10:22.574000-07:00 | 2026-10-06 11:10:24.571000-07:00 | 2026-10-06 11:10:26.968000-07:00 | ACCOUNTADMIN | changed three things at once | true | 8 | null | 1 | 0 | 0 | 0 | 72652554573 | STANDARD | ROLE | STANDARD_GEN_2 | 2 | NULL | NULL | NULL | NULL |
SELECT "name", "auto_suspend", "auto_resume", "comment"
FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));| name | auto_suspend | auto_resume | comment |
|---|---|---|---|
| WH_T156 | 120 | false | changed three things at once |
Auto suspend 120, auto resume false, and the new comment. All of them took, from the one statement.
And now UNSET, which is not what I assumed
UNSET takes a list of property names with no values. Let's unset the comment and the auto suspend together, and watch the auto suspend specifically.
ALTER WAREHOUSE WH_T156 UNSET COMMENT, AUTO_SUSPEND;| status |
|---|
| Statement executed successfully. |
SHOW WAREHOUSES LIKE 'WH\\_T156';| name | state | type | size | min_cluster_count | max_cluster_count | started_clusters | running | queued | is_default | is_current | auto_suspend | auto_resume | available | provisioning | quiescing | other | created_on | resumed_on | updated_on | owner | comment | enable_query_acceleration | query_acceleration_max_scale_factor | resource_monitor | actives | pendings | failed | suspended | uuid | scaling_policy | owner_role_type | resource_constraint | generation | query_throughput_multiplier | max_query_performance_level | disabled_reasons | tables |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| WH_T156 | STARTED | STANDARD | X-Small | 1 | 1 | 1 | 0 | 0 | N | Y | NULL | false | 100 | 0 | 0 | 0 | 2026-10-06 11:10:22.574000-07:00 | 2026-10-06 11:10:24.571000-07:00 | 2026-10-06 11:10:28.189000-07:00 | ACCOUNTADMIN | true | 8 | null | 1 | 0 | 0 | 0 | 72652554573 | STANDARD | ROLE | STANDARD_GEN_2 | 2 | NULL | NULL | NULL | NULL |
SELECT "name", "auto_suspend", "auto_resume", "comment"
FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));| name | auto_suspend | auto_resume | comment |
|---|---|---|---|
| WH_T156 | NULL | false |
The comment is empty, which is what I expected. And auto_suspend is NULL. Not 600. Not 60. NULL.
So UNSET does not put the default back. It removes the value, and what you are left with is a warehouse with no auto suspend written on it at all.
Those two cells are different kinds of nothing, and the grid keeps them apart. The comment cell is blank and marked empty, which is an empty string. The auto_suspend cell reads NULL, which is a real SQL NULL. SHOW uses an empty string for a missing text value and a real NULL for a missing number here, so do not read the two as the same answer.
Now let's unset something that was never set in the first place. The comment again, which we just removed.
ALTER WAREHOUSE WH_T156 UNSET COMMENT;| status |
|---|
| Statement executed successfully. |
SHOW WAREHOUSES LIKE 'WH\\_T156';| name | state | type | size | min_cluster_count | max_cluster_count | started_clusters | running | queued | is_default | is_current | auto_suspend | auto_resume | available | provisioning | quiescing | other | created_on | resumed_on | updated_on | owner | comment | enable_query_acceleration | query_acceleration_max_scale_factor | resource_monitor | actives | pendings | failed | suspended | uuid | scaling_policy | owner_role_type | resource_constraint | generation | query_throughput_multiplier | max_query_performance_level | disabled_reasons | tables |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| WH_T156 | STARTED | STANDARD | X-Small | 1 | 1 | 1 | 0 | 0 | N | Y | NULL | false | 100 | 0 | 0 | 0 | 2026-10-06 11:10:22.574000-07:00 | 2026-10-06 11:10:24.571000-07:00 | 2026-10-06 11:10:29.218000-07:00 | ACCOUNTADMIN | true | 8 | null | 1 | 0 | 0 | 0 | 72652554573 | STANDARD | ROLE | STANDARD_GEN_2 | 2 | NULL | NULL | NULL | NULL |
Statement executed successfully. No error, no warning, nothing. Silent, and the row is unchanged.
Now suspend, and where my file broke
Let's switch the warehouse off.
ALTER WAREHOUSE WH_T156 SUSPEND;| status |
|---|
| Statement executed successfully. |
The block name there says already suspended, and that was a guess I wrote before I ran it. Look back at the last grid: the state was STARTED, because the resize woke it. So that suspend did real work.
SHOW WAREHOUSES LIKE 'WH\\_T156';| name | state | type | size | min_cluster_count | max_cluster_count | started_clusters | running | queued | is_default | is_current | auto_suspend | auto_resume | available | provisioning | quiescing | other | created_on | resumed_on | updated_on | owner | comment | enable_query_acceleration | query_acceleration_max_scale_factor | resource_monitor | actives | pendings | failed | suspended | uuid | scaling_policy | owner_role_type | resource_constraint | generation | query_throughput_multiplier | max_query_performance_level | disabled_reasons | tables |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| WH_T156 | SUSPENDED | STANDARD | X-Small | 1 | 1 | 0 | 1 | 0 | N | Y | NULL | false | 2026-10-06 11:10:22.574000-07:00 | 2026-10-06 11:10:24.571000-07:00 | 2026-10-06 11:10:29.218000-07:00 | ACCOUNTADMIN | true | 8 | null | 0 | 0 | 0 | 1 | 72652554573 | STANDARD | ROLE | STANDARD_GEN_2 | 2 | NULL | NULL | NULL | NULL |
SUSPENDED. Now the very next statement in the file tried to read that state back as a row.
SELECT "name", "state" FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));000608 (57P03): Warehouse 'WH_T156' is suspended. Use 'alter warehouse WH_T156 resume;' command if you need to use it again.
000608, and it names WH_T156. That is this episode's own capture failing. The CREATE at the top had pointed the session at that warehouse, and we had just switched it off underneath ourselves.
It is the same lesson as the last post, from the other direction. The SHOW answered because a SHOW is metadata. The RESULT_SCAN that reads rows out of it needs compute, and there was none.
And resume, which has two forms
Let's switch it back on.
ALTER WAREHOUSE WH_T156 RESUME;| status |
|---|
| Statement executed successfully. |
SHOW WAREHOUSES LIKE 'WH\\_T156';| name | state | type | size | min_cluster_count | max_cluster_count | started_clusters | running | queued | is_default | is_current | auto_suspend | auto_resume | available | provisioning | quiescing | other | created_on | resumed_on | updated_on | owner | comment | enable_query_acceleration | query_acceleration_max_scale_factor | resource_monitor | actives | pendings | failed | suspended | uuid | scaling_policy | owner_role_type | resource_constraint | generation | query_throughput_multiplier | max_query_performance_level | disabled_reasons | tables |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| WH_T156 | RESUMING | STANDARD | X-Small | 1 | 1 | 0 | 0 | 0 | N | Y | NULL | false | 2026-10-06 11:10:22.574000-07:00 | 2026-10-06 11:10:24.571000-07:00 | 2026-10-06 11:10:29.218000-07:00 | ACCOUNTADMIN | true | 8 | null | 0 | 0 | 0 | 0 | 72652554573 | STANDARD | ROLE | STANDARD_GEN_2 | 2 | NULL | NULL | NULL | NULL |
SELECT "name", "state", "size" FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));| name | state | size |
|---|---|---|
| WH_T156 | RESUMING | X-Small |
RESUMING rather than STARTED. Those states are moments on the way up, and a SHOW run a second later can read either one.
Now let's resume one that is already running.
ALTER WAREHOUSE WH_T156 RESUME;090063 (22000): Invalid state. Warehouse 'WH_T156' cannot be resumed since it is not suspended.
090063, invalid state, cannot be resumed since it is not suspended. So the plain form expects the warehouse to be asleep.
SHOW WAREHOUSES LIKE 'WH\\_T156';| name | state | type | size | min_cluster_count | max_cluster_count | started_clusters | running | queued | is_default | is_current | auto_suspend | auto_resume | available | provisioning | quiescing | other | created_on | resumed_on | updated_on | owner | comment | enable_query_acceleration | query_acceleration_max_scale_factor | resource_monitor | actives | pendings | failed | suspended | uuid | scaling_policy | owner_role_type | resource_constraint | generation | query_throughput_multiplier | max_query_performance_level | disabled_reasons | tables |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| WH_T156 | STARTED | STANDARD | X-Small | 1 | 1 | 1 | 0 | 0 | N | Y | NULL | false | 100 | 0 | 0 | 0 | 2026-10-06 11:10:22.574000-07:00 | 2026-10-06 11:10:30.962000-07:00 | 2026-10-06 11:10:30.962000-07:00 | ACCOUNTADMIN | true | 8 | null | 1 | 0 | 0 | 0 | 72652554573 | STANDARD | ROLE | STANDARD_GEN_2 | 2 | NULL | NULL | NULL | NULL |
And the warehouse is untouched by that refusal. Still STARTED.
There is a second form that does not mind. RESUME IF SUSPENDED.
ALTER WAREHOUSE WH_T156 RESUME IF SUSPENDED;| status |
|---|
| Statement executed successfully. |
Statement executed successfully, on the same running warehouse that the plain form refused. So that is the form to use inside a script, where you do not know the state and do not want to care.
The block after it in my file was meant to read the state back, and it is worth showing because of what went wrong with it.
SELECT "name", "state" FROM TABLE(RESULT_SCAN(
(SELECT "name" FROM TABLE(RESULT_SCAN(LAST_QUERY_ID())) LIMIT 0)));001095 (22023): SQL compilation error: error line 2 at position 11 Invalid result query ID, found '(SELECT "name" FROM TABLE(RESULT_SCAN(LAST_QUERY_ID())) LIMIT 0)'
001095, invalid result query id. Read the statement rather than the code: it nests a RESULT_SCAN inside a subquery and hands the result of that to another RESULT_SCAN. That is a mistake in my reader. It says nothing about RESUME IF SUSPENDED.
Let's put the warehouse back to sleep.
ALTER WAREHOUSE WH_T156 SUSPEND;| status |
|---|
| Statement executed successfully. |
SHOW WAREHOUSES LIKE 'WH\\_T156';| name | state | type | size | min_cluster_count | max_cluster_count | started_clusters | running | queued | is_default | is_current | auto_suspend | auto_resume | available | provisioning | quiescing | other | created_on | resumed_on | updated_on | owner | comment | enable_query_acceleration | query_acceleration_max_scale_factor | resource_monitor | actives | pendings | failed | suspended | uuid | scaling_policy | owner_role_type | resource_constraint | generation | query_throughput_multiplier | max_query_performance_level | disabled_reasons | tables |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| WH_T156 | SUSPENDED | STANDARD | X-Small | 1 | 1 | 0 | 0 | 0 | N | Y | NULL | false | 2026-10-06 11:10:22.574000-07:00 | 2026-10-06 11:10:30.962000-07:00 | 2026-10-06 11:10:30.962000-07:00 | ACCOUNTADMIN | true | 8 | null | 0 | 0 | 0 | 1 | 72652554573 | STANDARD | ROLE | STANDARD_GEN_2 | 2 | NULL | NULL | NULL | NULL |
SELECT "name", "state" FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));000608 (57P03): Warehouse 'WH_T156' is suspended. Use 'alter warehouse WH_T156 resume;' command if you need to use it again.
SUSPENDED in the SHOW, and then 000608 for the second time, for exactly the same reason as before. We are standing on the warehouse we keep switching off.
There is one more state question worth asking, which is what happens when you suspend a warehouse that is already on its way down. The script for this episode quotes a refusal for that, and this episode's capture file does not contain one, so there is no result for it on this page.
-- Suspending a warehouse that is already on its way down.
-- The script for this episode quotes 090064 for this, but no capture in
-- this episode's file contains that refusal, so there is no result pane
-- for it on this page.
ALTER WAREHOUSE WH_T156 SUSPEND;What I can say from the grids above is that the state column goes through RESUMING and SUSPENDING on the way, and a refusal about state is about the state at that moment rather than the state you last asked for.
Can we abort queries on a warehouse with none?
ABORT ALL QUERIES is the emergency form. Let's run it on a suspended warehouse that is doing nothing at all.
ALTER WAREHOUSE WH_T156 ABORT ALL QUERIES;| status |
|---|
| Statement executed successfully. |
SHOW WAREHOUSES LIKE 'WH\\_T156';| name | state | type | size | min_cluster_count | max_cluster_count | started_clusters | running | queued | is_default | is_current | auto_suspend | auto_resume | available | provisioning | quiescing | other | created_on | resumed_on | updated_on | owner | comment | enable_query_acceleration | query_acceleration_max_scale_factor | resource_monitor | actives | pendings | failed | suspended | uuid | scaling_policy | owner_role_type | resource_constraint | generation | query_throughput_multiplier | max_query_performance_level | disabled_reasons | tables |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| WH_T156 | SUSPENDED | STANDARD | X-Small | 1 | 1 | 0 | 0 | 0 | N | Y | NULL | false | 2026-10-06 11:10:22.574000-07:00 | 2026-10-06 11:10:30.962000-07:00 | 2026-10-06 11:10:30.962000-07:00 | ACCOUNTADMIN | true | 8 | null | 0 | 0 | 0 | 1 | 72652554573 | STANDARD | ROLE | STANDARD_GEN_2 | 2 | NULL | NULL | NULL | NULL |
Accepted, and nothing changed. It is not an error to abort nothing, and it did not wake the warehouse up either.
Now the multi-cluster options, carefully
A warehouse can be allowed to run more than one cluster, which is how Snowflake handles concurrent queries. Here is one asking for a maximum of 2 at create time.
CREATE OR REPLACE WAREHOUSE WHALT_T156
WAREHOUSE_SIZE = XSMALL
MIN_CLUSTER_COUNT = 1
MAX_CLUSTER_COUNT = 2
SCALING_POLICY = STANDARD
AUTO_SUSPEND = 60
INITIALLY_SUSPENDED = TRUE
COMMENT = 'episode 156 - two clusters if allowed';| status |
|---|
| Warehouse WHALT_T156 successfully created. |
SHOW WAREHOUSES LIKE 'WHALT\\_T156';| name | state | type | size | min_cluster_count | max_cluster_count | started_clusters | running | queued | is_default | is_current | auto_suspend | auto_resume | available | provisioning | quiescing | other | created_on | resumed_on | updated_on | owner | comment | enable_query_acceleration | query_acceleration_max_scale_factor | resource_monitor | actives | pendings | failed | suspended | uuid | scaling_policy | owner_role_type | resource_constraint | generation | query_throughput_multiplier | max_query_performance_level | disabled_reasons | tables |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| WHALT_T156 | SUSPENDED | STANDARD | X-Small | 1 | 2 | 0 | 0 | 0 | N | Y | 60 | true | 2026-10-06 11:10:34.376000-07:00 | 2026-10-06 11:10:34.376000-07:00 | 2026-10-06 11:10:34.395000-07:00 | ACCOUNTADMIN | episode 156 - two clusters if allowed | true | 8 | null | 0 | 0 | 0 | 1 | 72652554821 | STANDARD | ROLE | STANDARD_GEN_2 | 2 | NULL | NULL | NULL | NULL |
SELECT "name", "type", "size", "min_cluster_count", "max_cluster_count",
"scaling_policy"
FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));| name | type | size | min_cluster_count | max_cluster_count | scaling_policy |
|---|---|---|---|---|---|
| WHALT_T156 | STANDARD | X-Small | 1 | 2 | STANDARD |
Accepted. Minimum 1, maximum 2, policy STANDARD.
The same thing by alter instead, on the warehouse that was created with one.
ALTER WAREHOUSE WH_T156 SET MIN_CLUSTER_COUNT = 1, MAX_CLUSTER_COUNT = 2;| status |
|---|
| Statement executed successfully. |
SHOW WAREHOUSES LIKE 'WH\\_T156';| name | state | type | size | min_cluster_count | max_cluster_count | started_clusters | running | queued | is_default | is_current | auto_suspend | auto_resume | available | provisioning | quiescing | other | created_on | resumed_on | updated_on | owner | comment | enable_query_acceleration | query_acceleration_max_scale_factor | resource_monitor | actives | pendings | failed | suspended | uuid | scaling_policy | owner_role_type | resource_constraint | generation | query_throughput_multiplier | max_query_performance_level | disabled_reasons | tables |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| WH_T156 | SUSPENDED | STANDARD | X-Small | 1 | 2 | 0 | 0 | 0 | N | N | NULL | false | 2026-10-06 11:10:22.574000-07:00 | 2026-10-06 11:10:30.962000-07:00 | 2026-10-06 11:10:36.109000-07:00 | ACCOUNTADMIN | true | 8 | null | 0 | 0 | 0 | 1 | 72652554573 | STANDARD | ROLE | STANDARD_GEN_2 | 2 | NULL | NULL | NULL | NULL |
SELECT "name", "min_cluster_count", "max_cluster_count", "scaling_policy"
FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));| name | min_cluster_count | max_cluster_count | scaling_policy |
|---|---|---|---|
| WH_T156 | 1 | 2 | STANDARD |
Also accepted. So you can ask for it at create time or add it later.
And there is a scaling policy, which changes how willing Snowflake is to start the second cluster.
ALTER WAREHOUSE WHALT_T156 SET SCALING_POLICY = ECONOMY;| status |
|---|
| Statement executed successfully. |
SHOW WAREHOUSES LIKE 'WHALT\\_T156';| name | state | type | size | min_cluster_count | max_cluster_count | started_clusters | running | queued | is_default | is_current | auto_suspend | auto_resume | available | provisioning | quiescing | other | created_on | resumed_on | updated_on | owner | comment | enable_query_acceleration | query_acceleration_max_scale_factor | resource_monitor | actives | pendings | failed | suspended | uuid | scaling_policy | owner_role_type | resource_constraint | generation | query_throughput_multiplier | max_query_performance_level | disabled_reasons | tables |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| WHALT_T156 | STARTED | STANDARD | X-Small | 1 | 2 | 1 | 0 | 0 | N | Y | 60 | true | 100 | 0 | 0 | 0 | 2026-10-06 11:10:34.376000-07:00 | 2026-10-06 11:10:35.552000-07:00 | 2026-10-06 11:10:37.414000-07:00 | ACCOUNTADMIN | episode 156 - two clusters if allowed | true | 8 | null | 1 | 0 | 0 | 0 | 72652554821 | ECONOMY | ROLE | STANDARD_GEN_2 | 2 | NULL | NULL | NULL | NULL |
SELECT "name", "min_cluster_count", "max_cluster_count", "scaling_policy"
FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));| name | min_cluster_count | max_cluster_count | scaling_policy |
|---|---|---|---|
| WHALT_T156 | 1 | 2 | ECONOMY |
ECONOMY, where it said STANDARD before.
Those grids say the catalogue accepted a maximum of 2. They do not say a second cluster ever started, because nothing in this capture creates concurrent load. I am not going to measure that here, and I am not going to invent a number for it. A catalogue value is a setting, not a measurement.
Two refusals to go with it. First a maximum below the minimum.
ALTER WAREHOUSE WHALT_T156 SET MIN_CLUSTER_COUNT = 2, MAX_CLUSTER_COUNT = 1;090075 (22000): Maximum cluster count of warehouse 'WHALT_T156' cannot be lower than minimum cluster count
090075, and it names the rule rather than just the position. Now a scaling policy that does not exist.
ALTER WAREHOUSE WHALT_T156 SET SCALING_POLICY = THRIFTY;001422 (22023): SQL compilation error: invalid value 'THRIFTY' for property 'SCALING_POLICY'
001422, invalid value for the property. So the policy list is closed, and this is a value refusal rather than a syntax one.
And one more type of warehouse
There is a second warehouse type, for Snowpark workloads. Let's create one and see what the catalogue makes of it.
CREATE OR REPLACE WAREHOUSE WHSNOW_T156
WAREHOUSE_TYPE = 'SNOWPARK-OPTIMIZED'
WAREHOUSE_SIZE = MEDIUM
AUTO_SUSPEND = 60
INITIALLY_SUSPENDED = TRUE;| status |
|---|
| Warehouse WHSNOW_T156 successfully created. |
SHOW WAREHOUSES LIKE 'WHSNOW\\_T156';| name | state | type | size | min_cluster_count | max_cluster_count | started_clusters | running | queued | is_default | is_current | auto_suspend | auto_resume | available | provisioning | quiescing | other | created_on | resumed_on | updated_on | owner | comment | enable_query_acceleration | query_acceleration_max_scale_factor | resource_monitor | actives | pendings | failed | suspended | uuid | scaling_policy | owner_role_type | resource_constraint | generation | query_throughput_multiplier | max_query_performance_level | disabled_reasons | tables |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| WHSNOW_T156 | SUSPENDED | SNOWPARK-OPTIMIZED | Medium | 1 | 1 | 0 | 0 | 0 | N | Y | 60 | true | 2026-10-06 11:10:39.260000-07:00 | 2026-10-06 11:10:39.260000-07:00 | 2026-10-06 11:10:39.292000-07:00 | ACCOUNTADMIN | false | 8 | null | 0 | 0 | 0 | 1 | 283799292 | STANDARD | ROLE | MEMORY_16X | NULL | NULL | NULL | NULL | NULL |
It was accepted on this account. The type column reads SNOWPARK-OPTIMIZED, and the size is Medium because the statement asked for MEDIUM. So that is not a default and this grid does not tell us what the default size of this type is.
The column that does say something new is resource_constraint. It reads MEMORY_16X here, where every standard warehouse in this post reads STANDARD_GEN_2. That is the difference the type actually made.
The column that tells you where a value came from
This is the most useful thing in the post. A warehouse can carry parameters, and a parameter has a value, a default, and a level. Let's set a statement timeout on the warehouse itself.
ALTER WAREHOUSE WH_T156 SET STATEMENT_TIMEOUT_IN_SECONDS = 600;| status |
|---|
| Statement executed successfully. |
SHOW PARAMETERS LIKE 'STATEMENT_TIMEOUT_IN_SECONDS' IN WAREHOUSE WH_T156;| key | value | default | level | description | type |
|---|---|---|---|---|---|
| STATEMENT_TIMEOUT_IN_SECONDS | 600 | 172800 | WAREHOUSE | Timeout in seconds for statements: statements are automatically canceled if they run for longer; if set to zero, max value (604800) is enforced. | NUMBER |
SELECT "key", "value", "default", "level"
FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));| key | value | default | level |
|---|---|---|---|
| STATEMENT_TIMEOUT_IN_SECONDS | 600 | 172800 | WAREHOUSE |
Value 600, default 172800, and the level is WAREHOUSE. So the level column is telling us this value was set here, rather than inherited from somewhere above.
Now let's unset it and watch that same column.
ALTER WAREHOUSE WH_T156 UNSET STATEMENT_TIMEOUT_IN_SECONDS;| status |
|---|
| Statement executed successfully. |
SHOW PARAMETERS LIKE 'STATEMENT_TIMEOUT_IN_SECONDS' IN WAREHOUSE WH_T156;| key | value | default | level | description | type |
|---|---|---|---|---|---|
| STATEMENT_TIMEOUT_IN_SECONDS | 172800 | 172800 | Timeout in seconds for statements: statements are automatically canceled if they run for longer; if set to zero, max value (604800) is enforced. | NUMBER |
SELECT "key", "value", "default", "level"
FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));| key | value | default | level |
|---|---|---|---|
| STATEMENT_TIMEOUT_IN_SECONDS | 172800 | 172800 |
The value is back to 172800, the same as the default, and the level is empty.
An empty level means nobody set this parameter and you are looking at the default. A level with a word in it means somebody set it, and the word tells you where. That one column is how you tell a value you chose from a value you inherited, and it is the first thing to read when a parameter is not what you expect.
Now a rename, and whether anything is lost
RENAME TO is an alter like any other. Let's rename the multi-cluster one.
ALTER WAREHOUSE WHALT_T156 RENAME TO WHRENAMED_T156;| status |
|---|
| Statement executed successfully. |
SHOW WAREHOUSES LIKE 'WHALT\\_T156';| name | state | type | size | min_cluster_count | max_cluster_count | started_clusters | running | queued | is_default | is_current | auto_suspend | auto_resume | available | provisioning | quiescing | other | created_on | resumed_on | updated_on | owner | comment | enable_query_acceleration | query_acceleration_max_scale_factor | resource_monitor | actives | pendings | failed | suspended | uuid | scaling_policy | owner_role_type | resource_constraint | generation | query_throughput_multiplier | max_query_performance_level | disabled_reasons | tables |
|---|
The old name returns nothing at all. And the new one?
SHOW WAREHOUSES LIKE 'WHRENAMED\\_T156';| name | state | type | size | min_cluster_count | max_cluster_count | started_clusters | running | queued | is_default | is_current | auto_suspend | auto_resume | available | provisioning | quiescing | other | created_on | resumed_on | updated_on | owner | comment | enable_query_acceleration | query_acceleration_max_scale_factor | resource_monitor | actives | pendings | failed | suspended | uuid | scaling_policy | owner_role_type | resource_constraint | generation | query_throughput_multiplier | max_query_performance_level | disabled_reasons | tables |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| WHRENAMED_T156 | STARTED | STANDARD | X-Small | 1 | 2 | 1 | 0 | 0 | N | N | 60 | true | 100 | 0 | 0 | 0 | 2026-10-06 11:10:34.376000-07:00 | 2026-10-06 11:10:35.552000-07:00 | 2026-10-06 11:10:42.597000-07:00 | ACCOUNTADMIN | episode 156 - two clusters if allowed | true | 8 | null | 1 | 0 | 0 | 0 | 72652554821 | ECONOMY | ROLE | STANDARD_GEN_2 | 2 | NULL | NULL | NULL | NULL |
SELECT "name", "size", "min_cluster_count", "max_cluster_count",
"scaling_policy", "comment"
FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));| name | size | min_cluster_count | max_cluster_count | scaling_policy | comment |
|---|---|---|---|---|---|
| WHRENAMED_T156 | X-Small | 1 | 2 | ECONOMY | episode 156 - two clusters if allowed |
The size, both cluster counts, the ECONOMY policy and the comment all came across. A rename is a rename and nothing else, so it is the same object under a new name.
Let's see the ways an alter gets refused
First, a warehouse that does not exist.
ALTER WAREHOUSE NO_SUCH_WAREHOUSE_T156 SET AUTO_SUSPEND = 60;002003 (02000): SQL compilation error: Warehouse 'NO_SUCH_WAREHOUSE_T156' does not exist or not authorized. Your primary role ACCOUNTADMIN or one of your secondary roles must have at least one privilege granted on WAREHOUSE NO_SUCH_WAREHOUSE_T156.
002003. Now the same statement with IF EXISTS.
ALTER WAREHOUSE IF EXISTS NO_SUCH_WAREHOUSE_T156 SET AUTO_SUSPEND = 60;| status |
|---|
| Statement executed successfully. |
SHOW WAREHOUSES LIKE 'NO\\_SUCH\\_WAREHOUSE\\_T156';| name | state | type | size | min_cluster_count | max_cluster_count | started_clusters | running | queued | is_default | is_current | auto_suspend | auto_resume | available | provisioning | quiescing | other | created_on | resumed_on | updated_on | owner | comment | enable_query_acceleration | query_acceleration_max_scale_factor | resource_monitor | actives | pendings | failed | suspended | uuid | scaling_policy | owner_role_type | resource_constraint | generation | query_throughput_multiplier | max_query_performance_level | disabled_reasons | tables |
|---|
It succeeded, and the SHOW after it returns nothing, so nothing was created to make the statement true. Quiet, and honest.
Then a property that does not exist. AUTO_SUSPENDED, with a D on the end.
ALTER WAREHOUSE WH_T156 SET AUTO_SUSPENDED = 60;001420 (22023): SQL compilation error: invalid property 'AUTO_SUSPENDED' for 'WAREHOUSE'
001420, invalid property. And a size that is not a size.
ALTER WAREHOUSE WH_T156 SET WAREHOUSE_SIZE = ENORMOUS;001421 (22023): SQL compilation error: invalid type of property 'ENORMOUS' for 'WAREHOUSE_SIZE'
001421, invalid type of property. Those two codes are worth telling apart: one is a property name Snowflake does not know, and the other is a real property with a value it will not take.
And SET with nothing after it at all.
ALTER WAREHOUSE WH_T156 SET;001003 (42000): SQL compilation error: syntax error line 1 at position 27 unexpected '<EOF>'.
001003, unexpected end of file. The grammar wants at least one property.
One last thing: let's put the account back
Before the drops, here is the warehouse this capture never altered, read only so you can see it was left alone.
SHOW WAREHOUSES LIKE 'COMPUTE\\_WH';| name | state | type | size | min_cluster_count | max_cluster_count | started_clusters | running | queued | is_default | is_current | auto_suspend | auto_resume | available | provisioning | quiescing | other | created_on | resumed_on | updated_on | owner | comment | enable_query_acceleration | query_acceleration_max_scale_factor | resource_monitor | actives | pendings | failed | suspended | uuid | scaling_policy | owner_role_type | resource_constraint | generation | query_throughput_multiplier | max_query_performance_level | disabled_reasons | tables |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| COMPUTE_WH | STARTED | STANDARD | X-Small | 1 | 1 | 1 | 0 | 0 | Y | N | 300 | true | 100 | 0 | 0 | 0 | 2026-09-21 18:36:58.764000-07:00 | 2026-10-06 11:05:18.848000-07:00 | 2026-10-06 11:05:18.848000-07:00 | ACCOUNTADMIN | true | 8 | null | 1 | 0 | 0 | 0 | 283799204 | STANDARD | ROLE | STANDARD_GEN_2 | 2 | NULL | NULL | NULL | NULL |
SELECT "name", "state", "size", "auto_suspend", "auto_resume", "type",
"min_cluster_count", "max_cluster_count"
FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));| name | state | size | auto_suspend | auto_resume | type | min_cluster_count | max_cluster_count |
|---|---|---|---|---|---|---|---|
| COMPUTE_WH | STARTED | X-Small | 300 | true | STANDARD | 1 | 1 |
Auto suspend 300, auto resume true, one cluster each way. Exactly as the account shipped it.
Now the drops. Two of them here, and the rest are the same statement with different names.
DROP WAREHOUSE IF EXISTS WH_T156;| status |
|---|
| WH_T156 successfully dropped. |
DROP WAREHOUSE IF EXISTS WHRENAMED_T156;| status |
|---|
| WHRENAMED_T156 successfully dropped. |
SHOW WAREHOUSES;| name | state | type | size | min_cluster_count | max_cluster_count | started_clusters | running | queued | is_default | is_current | auto_suspend | auto_resume | available | provisioning | quiescing | other | created_on | resumed_on | updated_on | owner | comment | enable_query_acceleration | query_acceleration_max_scale_factor | resource_monitor | actives | pendings | failed | suspended | uuid | scaling_policy | owner_role_type | resource_constraint | generation | query_throughput_multiplier | max_query_performance_level | disabled_reasons | tables |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| COMPUTE_WH | STARTED | STANDARD | X-Small | 1 | 1 | 1 | 0 | 0 | Y | N | 300 | true | 100 | 0 | 0 | 0 | 2026-09-21 18:36:58.764000-07:00 | 2026-10-06 11:05:18.848000-07:00 | 2026-10-06 11:05:18.848000-07:00 | ACCOUNTADMIN | true | 8 | null | 1 | 0 | 0 | 0 | 283799204 | STANDARD | ROLE | STANDARD_GEN_2 | 2 | NULL | NULL | NULL | NULL | |
| SNOWFLAKE_LEARNING_WH | SUSPENDED | STANDARD | X-Small | 1 | 1 | 0 | 0 | 0 | N | N | 300 | true | 2026-09-21 18:33:47.899000-07:00 | 2026-09-21 18:33:47.899000-07:00 | 2026-09-21 18:33:47.913000-07:00 | ACCOUNTADMIN | Created by Snowflake during account provisioning | true | 8 | null | 0 | 0 | 0 | 1 | 283799128 | STANDARD | ROLE | STANDARD_GEN_2 | 2 | NULL | NULL | NULL | NULL | ||||
| SYSTEM$STREAMLIT_NOTEBOOK_WH | SUSPENDED | STANDARD | X-Small | 1 | 10 | 0 | 0 | 0 | N | N | 60 | true | 2026-09-21 18:33:46.101000-07:00 | 2026-09-21 18:33:46.115000-07:00 | 2026-09-21 18:33:46.136000-07:00 | ACCOUNTADMIN | true | 8 | null | 0 | 0 | 0 | 1 | 283799044 | STANDARD | ROLE | STANDARD_GEN_2 | 2 | NULL | NULL | NULL | NULL |
The same three we started with. The tidy-up check after it went looking in the wrong place, and it is worth showing why.
SELECT COUNT(*) AS WAREHOUSES_OF_MINE_LEFT
FROM DEMO_DB.INFORMATION_SCHEMA.WAREHOUSES
WHERE ENDSWITH(UPPER(WAREHOUSE_NAME), '_T156');002003 (42S02): SQL compilation error: Object 'DEMO_DB.INFORMATION_SCHEMA.WAREHOUSES' does not exist or not authorized. Your primary role ACCOUNTADMIN or one of your secondary roles must have at least one privilege granted on TABLE DEMO_DB.INFORMATION_SCHEMA.WAREHOUSES.
002003. A warehouse is an account-level object and there is no per-database view of warehouses, so that check could never have worked. The grid above it is the real proof.
SELECT CURRENT_WAREHOUSE() AS THE_WAREHOUSE,
CURRENT_ROLE() AS THE_ROLE,
CURRENT_DATABASE() AS THE_DATABASE,
CURRENT_SCHEMA() AS THE_SCHEMA;| THE_WAREHOUSE | THE_ROLE | THE_DATABASE | THE_SCHEMA |
|---|---|---|---|
| NULL | ACCOUNTADMIN | DEMO_DB | PUBLIC |
And the session ends on NULL again, which is where it began this post. That is consistent, at least.
Key points
- Resizing a suspended warehouse starts it. The size changed and so did the state.
UNSETleavesNULL, not the default.auto_suspendreadNULLrather than going back to 600.UNSETon something that was never set succeeds silently.- One
SETcan change several properties at once, and all of them take together. RESUMEon a running warehouse is090063.RESUME IF SUSPENDEDsucceeds on the same warehouse.ABORT ALL QUERIESon an idle warehouse is accepted and changes nothing.MAX_CLUSTER_COUNTandSCALING_POLICYare accepted at create time and by alter, and a catalogue value is not proof that a second cluster ever started.- A maximum below the minimum is
090075, and an unknown scaling policy is001422. - An empty
levelinSHOW PARAMETERSmeans nobody set it and you are looking at the default. RENAME TOcarries the size, the cluster counts, the policy and the comment across.ALTER ... IF EXISTSsucceeds without creating anything.001420is a property Snowflake does not know.001421is a real property with a value it will not take.
In the next post we look at resource monitors: credit quotas, triggers, what happens when you attach one to two warehouses, and a statement I got wrong in my own file.
Every query and every result grid on this page was captured from a live Snowflake account (version 10.36.101) running the demo script for this episode. The two 000608 refusals are this capture failing on a warehouse its own CREATE moved the session onto, and the post says so rather than presenting them as examples. One statement is shown with no result because this episode's capture file does not contain one for it. Every warehouse created here is dropped here, and COMPUTE_WH is read but never altered. Nothing is timed and no performance claims are made anywhere in this series. Behaviour follows the Snowflake ALTER WAREHOUSE documentation.



No comments:
Post a Comment
Note: Only a member of this blog may post a comment.