Snowflake SQL Tutorial 156 - Resizing A Suspended Warehouse Switched It On, And UNSET Gave Me NULL

Snowflake SQL · Episode 156

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

There is no sample table in this post. We are still working on the account itself.

Where we are running
-- 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.
Query
SHOW WAREHOUSES;
Result3 rows · 38 columns · scroll →
namestatetypesizemin_cluster_countmax_cluster_countstarted_clustersrunningqueuedis_defaultis_currentauto_suspendauto_resumeavailableprovisioningquiescingothercreated_onresumed_onupdated_onownercommentenable_query_accelerationquery_acceleration_max_scale_factorresource_monitoractivespendingsfailedsuspendeduuidscaling_policyowner_role_typeresource_constraintgenerationquery_throughput_multipliermax_query_performance_leveldisabled_reasonstables
COMPUTE_WHSTARTEDSTANDARDX-Small11100YN300true 1000002026-09-21 18:36:58.764000-07:002026-10-06 11:05:18.848000-07:002026-10-06 11:05:18.848000-07:00ACCOUNTADMINtrue8null1000283799204STANDARDROLESTANDARD_GEN_22NULLNULLNULLNULL
SNOWFLAKE_LEARNING_WHSUSPENDEDSTANDARDX-Small11000NN300true2026-09-21 18:33:47.899000-07:002026-09-21 18:33:47.899000-07:002026-09-21 18:33:47.913000-07:00ACCOUNTADMINCreated by Snowflake during account provisioningtrue8null0001283799128STANDARDROLESTANDARD_GEN_22NULLNULLNULLNULL
SYSTEM$STREAMLIT_NOTEBOOK_WHSUSPENDEDSTANDARDX-Small110000NN60true2026-09-21 18:33:46.101000-07:002026-09-21 18:33:46.115000-07:002026-09-21 18:33:46.136000-07:00ACCOUNTADMINtrue8null0001283799044STANDARDROLESTANDARD_GEN_22NULLNULLNULLNULL

The same three warehouses the account came with. Now look at the session, because this is not the value you would expect.

Query
SELECT CURRENT_WAREHOUSE() AS THE_WAREHOUSE,
       CURRENT_ROLE()      AS THE_ROLE,
       CURRENT_VERSION()   AS THE_VERSION;
Result1 row · 3 columns
THE_WAREHOUSETHE_ROLETHE_VERSION
NULLACCOUNTADMIN10.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
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';
Result1 row · 1 column
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.

Query
SHOW WAREHOUSES LIKE 'WH\\_T156';
Result1 row · 38 columns · scroll →
namestatetypesizemin_cluster_countmax_cluster_countstarted_clustersrunningqueuedis_defaultis_currentauto_suspendauto_resumeavailableprovisioningquiescingothercreated_onresumed_onupdated_onownercommentenable_query_accelerationquery_acceleration_max_scale_factorresource_monitoractivespendingsfailedsuspendeduuidscaling_policyowner_role_typeresource_constraintgenerationquery_throughput_multipliermax_query_performance_leveldisabled_reasonstables
WH_T156SUSPENDEDSTANDARDX-Small11000NY60true2026-10-06 11:10:22.574000-07:002026-10-06 11:10:22.574000-07:002026-10-06 11:10:22.601000-07:00ACCOUNTADMINepisode 156 - the one I altertrue8null000172652554573STANDARDROLESTANDARD_GEN_22NULLNULLNULLNULL
Query
SELECT "name", "state", "size", "auto_suspend", "auto_resume", "comment"
  FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));
Result1 row · 6 columns · scroll →
namestatesizeauto_suspendauto_resumecomment
WH_T156SUSPENDEDX-Small60trueepisode 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
ALTER WAREHOUSE WH_T156 SET WAREHOUSE_SIZE = SMALL;
Result1 row · 1 column
status
Statement executed successfully.

Statement executed successfully. Now let's ask what it looks like.

Query
SHOW WAREHOUSES LIKE 'WH\\_T156';
Result1 row · 38 columns · scroll →
namestatetypesizemin_cluster_countmax_cluster_countstarted_clustersrunningqueuedis_defaultis_currentauto_suspendauto_resumeavailableprovisioningquiescingothercreated_onresumed_onupdated_onownercommentenable_query_accelerationquery_acceleration_max_scale_factorresource_monitoractivespendingsfailedsuspendeduuidscaling_policyowner_role_typeresource_constraintgenerationquery_throughput_multipliermax_query_performance_leveldisabled_reasonstables
WH_T156STARTEDSTANDARDSmall11100NY60true 1000002026-10-06 11:10:22.574000-07:002026-10-06 11:10:24.571000-07:002026-10-06 11:10:24.572000-07:00ACCOUNTADMINepisode 156 - the one I altertrue8null200072652554573STANDARDROLESTANDARD_GEN_22NULLNULLNULLNULL
Query
SELECT "name", "state", "size" FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));
Result1 row · 3 columns
namestatesize
WH_T156STARTEDSmall

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.

The first thing the statement does not mention

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
ALTER WAREHOUSE WH_T156 SET WAREHOUSE_SIZE = XSMALL;
Result1 row · 1 column
status
Statement executed successfully.
Query
SELECT "name", "state", "size"
  FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));
Query failed — Snowflake returned an error
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.

Query
SHOW WAREHOUSES LIKE 'WH\\_T156';
Result1 row · 38 columns · scroll →
namestatetypesizemin_cluster_countmax_cluster_countstarted_clustersrunningqueuedis_defaultis_currentauto_suspendauto_resumeavailableprovisioningquiescingothercreated_onresumed_onupdated_onownercommentenable_query_accelerationquery_acceleration_max_scale_factorresource_monitoractivespendingsfailedsuspendeduuidscaling_policyowner_role_typeresource_constraintgenerationquery_throughput_multipliermax_query_performance_leveldisabled_reasonstables
WH_T156STARTEDSTANDARDX-Small11100NY60true 1000002026-10-06 11:10:22.574000-07:002026-10-06 11:10:24.571000-07:002026-10-06 11:10:25.946000-07:00ACCOUNTADMINepisode 156 - the one I altertrue8null100072652554573STANDARDROLESTANDARD_GEN_22NULLNULLNULLNULL

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
ALTER WAREHOUSE WH_T156 SET
    AUTO_SUSPEND = 120,
    AUTO_RESUME  = FALSE,
    COMMENT      = 'changed three things at once';
Result1 row · 1 column
status
Statement executed successfully.
Query
SHOW WAREHOUSES LIKE 'WH\\_T156';
Result1 row · 38 columns · scroll →
namestatetypesizemin_cluster_countmax_cluster_countstarted_clustersrunningqueuedis_defaultis_currentauto_suspendauto_resumeavailableprovisioningquiescingothercreated_onresumed_onupdated_onownercommentenable_query_accelerationquery_acceleration_max_scale_factorresource_monitoractivespendingsfailedsuspendeduuidscaling_policyowner_role_typeresource_constraintgenerationquery_throughput_multipliermax_query_performance_leveldisabled_reasonstables
WH_T156STARTEDSTANDARDX-Small11100NY120false 1000002026-10-06 11:10:22.574000-07:002026-10-06 11:10:24.571000-07:002026-10-06 11:10:26.968000-07:00ACCOUNTADMINchanged three things at oncetrue8null100072652554573STANDARDROLESTANDARD_GEN_22NULLNULLNULLNULL
Query
SELECT "name", "auto_suspend", "auto_resume", "comment"
  FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));
Result1 row · 4 columns
nameauto_suspendauto_resumecomment
WH_T156120falsechanged 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
ALTER WAREHOUSE WH_T156 UNSET COMMENT, AUTO_SUSPEND;
Result1 row · 1 column
status
Statement executed successfully.
Query
SHOW WAREHOUSES LIKE 'WH\\_T156';
Result1 row · 38 columns · scroll →
namestatetypesizemin_cluster_countmax_cluster_countstarted_clustersrunningqueuedis_defaultis_currentauto_suspendauto_resumeavailableprovisioningquiescingothercreated_onresumed_onupdated_onownercommentenable_query_accelerationquery_acceleration_max_scale_factorresource_monitoractivespendingsfailedsuspendeduuidscaling_policyowner_role_typeresource_constraintgenerationquery_throughput_multipliermax_query_performance_leveldisabled_reasonstables
WH_T156STARTEDSTANDARDX-Small11100NYNULLfalse 1000002026-10-06 11:10:22.574000-07:002026-10-06 11:10:24.571000-07:002026-10-06 11:10:28.189000-07:00ACCOUNTADMINtrue8null100072652554573STANDARDROLESTANDARD_GEN_22NULLNULLNULLNULL
Query
SELECT "name", "auto_suspend", "auto_resume", "comment"
  FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));
Result1 row · 4 columns
nameauto_suspendauto_resumecomment
WH_T156NULLfalse

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.

Two different kinds of nothing, in one row

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
ALTER WAREHOUSE WH_T156 UNSET COMMENT;
Result1 row · 1 column
status
Statement executed successfully.
Query
SHOW WAREHOUSES LIKE 'WH\\_T156';
Result1 row · 38 columns · scroll →
namestatetypesizemin_cluster_countmax_cluster_countstarted_clustersrunningqueuedis_defaultis_currentauto_suspendauto_resumeavailableprovisioningquiescingothercreated_onresumed_onupdated_onownercommentenable_query_accelerationquery_acceleration_max_scale_factorresource_monitoractivespendingsfailedsuspendeduuidscaling_policyowner_role_typeresource_constraintgenerationquery_throughput_multipliermax_query_performance_leveldisabled_reasonstables
WH_T156STARTEDSTANDARDX-Small11100NYNULLfalse 1000002026-10-06 11:10:22.574000-07:002026-10-06 11:10:24.571000-07:002026-10-06 11:10:29.218000-07:00ACCOUNTADMINtrue8null100072652554573STANDARDROLESTANDARD_GEN_22NULLNULLNULLNULL

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
ALTER WAREHOUSE WH_T156 SUSPEND;
Result1 row · 1 column
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.

Query
SHOW WAREHOUSES LIKE 'WH\\_T156';
Result1 row · 38 columns · scroll →
namestatetypesizemin_cluster_countmax_cluster_countstarted_clustersrunningqueuedis_defaultis_currentauto_suspendauto_resumeavailableprovisioningquiescingothercreated_onresumed_onupdated_onownercommentenable_query_accelerationquery_acceleration_max_scale_factorresource_monitoractivespendingsfailedsuspendeduuidscaling_policyowner_role_typeresource_constraintgenerationquery_throughput_multipliermax_query_performance_leveldisabled_reasonstables
WH_T156SUSPENDEDSTANDARDX-Small11010NYNULLfalse2026-10-06 11:10:22.574000-07:002026-10-06 11:10:24.571000-07:002026-10-06 11:10:29.218000-07:00ACCOUNTADMINtrue8null000172652554573STANDARDROLESTANDARD_GEN_22NULLNULLNULLNULL

SUSPENDED. Now the very next statement in the file tried to read that state back as a row.

Query
SELECT "name", "state" FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));
Query failed — Snowflake returned an error
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
ALTER WAREHOUSE WH_T156 RESUME;
Result1 row · 1 column
status
Statement executed successfully.
Query
SHOW WAREHOUSES LIKE 'WH\\_T156';
Result1 row · 38 columns · scroll →
namestatetypesizemin_cluster_countmax_cluster_countstarted_clustersrunningqueuedis_defaultis_currentauto_suspendauto_resumeavailableprovisioningquiescingothercreated_onresumed_onupdated_onownercommentenable_query_accelerationquery_acceleration_max_scale_factorresource_monitoractivespendingsfailedsuspendeduuidscaling_policyowner_role_typeresource_constraintgenerationquery_throughput_multipliermax_query_performance_leveldisabled_reasonstables
WH_T156RESUMINGSTANDARDX-Small11000NYNULLfalse2026-10-06 11:10:22.574000-07:002026-10-06 11:10:24.571000-07:002026-10-06 11:10:29.218000-07:00ACCOUNTADMINtrue8null000072652554573STANDARDROLESTANDARD_GEN_22NULLNULLNULLNULL
Query
SELECT "name", "state", "size" FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));
Result1 row · 3 columns
namestatesize
WH_T156RESUMINGX-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
ALTER WAREHOUSE WH_T156 RESUME;
Query failed — Snowflake returned an error
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.

Query
SHOW WAREHOUSES LIKE 'WH\\_T156';
Result1 row · 38 columns · scroll →
namestatetypesizemin_cluster_countmax_cluster_countstarted_clustersrunningqueuedis_defaultis_currentauto_suspendauto_resumeavailableprovisioningquiescingothercreated_onresumed_onupdated_onownercommentenable_query_accelerationquery_acceleration_max_scale_factorresource_monitoractivespendingsfailedsuspendeduuidscaling_policyowner_role_typeresource_constraintgenerationquery_throughput_multipliermax_query_performance_leveldisabled_reasonstables
WH_T156STARTEDSTANDARDX-Small11100NYNULLfalse 1000002026-10-06 11:10:22.574000-07:002026-10-06 11:10:30.962000-07:002026-10-06 11:10:30.962000-07:00ACCOUNTADMINtrue8null100072652554573STANDARDROLESTANDARD_GEN_22NULLNULLNULLNULL

And the warehouse is untouched by that refusal. Still STARTED.

There is a second form that does not mind. RESUME IF SUSPENDED.

Alter
ALTER WAREHOUSE WH_T156 RESUME IF SUSPENDED;
Result1 row · 1 column
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.

Query
SELECT "name", "state" FROM TABLE(RESULT_SCAN(
           (SELECT "name" FROM TABLE(RESULT_SCAN(LAST_QUERY_ID())) LIMIT 0)));
Query failed — Snowflake returned an error
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
ALTER WAREHOUSE WH_T156 SUSPEND;
Result1 row · 1 column
status
Statement executed successfully.
Query
SHOW WAREHOUSES LIKE 'WH\\_T156';
Result1 row · 38 columns · scroll →
namestatetypesizemin_cluster_countmax_cluster_countstarted_clustersrunningqueuedis_defaultis_currentauto_suspendauto_resumeavailableprovisioningquiescingothercreated_onresumed_onupdated_onownercommentenable_query_accelerationquery_acceleration_max_scale_factorresource_monitoractivespendingsfailedsuspendeduuidscaling_policyowner_role_typeresource_constraintgenerationquery_throughput_multipliermax_query_performance_leveldisabled_reasonstables
WH_T156SUSPENDEDSTANDARDX-Small11000NYNULLfalse2026-10-06 11:10:22.574000-07:002026-10-06 11:10:30.962000-07:002026-10-06 11:10:30.962000-07:00ACCOUNTADMINtrue8null000172652554573STANDARDROLESTANDARD_GEN_22NULLNULLNULLNULL
Query
SELECT "name", "state" FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));
Query failed — Snowflake returned an error
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.

Statement (no captured result)
-- 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
ALTER WAREHOUSE WH_T156 ABORT ALL QUERIES;
Result1 row · 1 column
status
Statement executed successfully.
Query
SHOW WAREHOUSES LIKE 'WH\\_T156';
Result1 row · 38 columns · scroll →
namestatetypesizemin_cluster_countmax_cluster_countstarted_clustersrunningqueuedis_defaultis_currentauto_suspendauto_resumeavailableprovisioningquiescingothercreated_onresumed_onupdated_onownercommentenable_query_accelerationquery_acceleration_max_scale_factorresource_monitoractivespendingsfailedsuspendeduuidscaling_policyowner_role_typeresource_constraintgenerationquery_throughput_multipliermax_query_performance_leveldisabled_reasonstables
WH_T156SUSPENDEDSTANDARDX-Small11000NYNULLfalse2026-10-06 11:10:22.574000-07:002026-10-06 11:10:30.962000-07:002026-10-06 11:10:30.962000-07:00ACCOUNTADMINtrue8null000172652554573STANDARDROLESTANDARD_GEN_22NULLNULLNULLNULL

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
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';
Result1 row · 1 column
status
Warehouse WHALT_T156 successfully created.
Query
SHOW WAREHOUSES LIKE 'WHALT\\_T156';
Result1 row · 38 columns · scroll →
namestatetypesizemin_cluster_countmax_cluster_countstarted_clustersrunningqueuedis_defaultis_currentauto_suspendauto_resumeavailableprovisioningquiescingothercreated_onresumed_onupdated_onownercommentenable_query_accelerationquery_acceleration_max_scale_factorresource_monitoractivespendingsfailedsuspendeduuidscaling_policyowner_role_typeresource_constraintgenerationquery_throughput_multipliermax_query_performance_leveldisabled_reasonstables
WHALT_T156SUSPENDEDSTANDARDX-Small12000NY60true2026-10-06 11:10:34.376000-07:002026-10-06 11:10:34.376000-07:002026-10-06 11:10:34.395000-07:00ACCOUNTADMINepisode 156 - two clusters if allowedtrue8null000172652554821STANDARDROLESTANDARD_GEN_22NULLNULLNULLNULL
Query
SELECT "name", "type", "size", "min_cluster_count", "max_cluster_count",
       "scaling_policy"
  FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));
Result1 row · 6 columns · scroll →
nametypesizemin_cluster_countmax_cluster_countscaling_policy
WHALT_T156STANDARDX-Small12STANDARD

Accepted. Minimum 1, maximum 2, policy STANDARD.

The same thing by alter instead, on the warehouse that was created with one.

Alter
ALTER WAREHOUSE WH_T156 SET MIN_CLUSTER_COUNT = 1, MAX_CLUSTER_COUNT = 2;
Result1 row · 1 column
status
Statement executed successfully.
Query
SHOW WAREHOUSES LIKE 'WH\\_T156';
Result1 row · 38 columns · scroll →
namestatetypesizemin_cluster_countmax_cluster_countstarted_clustersrunningqueuedis_defaultis_currentauto_suspendauto_resumeavailableprovisioningquiescingothercreated_onresumed_onupdated_onownercommentenable_query_accelerationquery_acceleration_max_scale_factorresource_monitoractivespendingsfailedsuspendeduuidscaling_policyowner_role_typeresource_constraintgenerationquery_throughput_multipliermax_query_performance_leveldisabled_reasonstables
WH_T156SUSPENDEDSTANDARDX-Small12000NNNULLfalse2026-10-06 11:10:22.574000-07:002026-10-06 11:10:30.962000-07:002026-10-06 11:10:36.109000-07:00ACCOUNTADMINtrue8null000172652554573STANDARDROLESTANDARD_GEN_22NULLNULLNULLNULL
Query
SELECT "name", "min_cluster_count", "max_cluster_count", "scaling_policy"
  FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));
Result1 row · 4 columns
namemin_cluster_countmax_cluster_countscaling_policy
WH_T15612STANDARD

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
ALTER WAREHOUSE WHALT_T156 SET SCALING_POLICY = ECONOMY;
Result1 row · 1 column
status
Statement executed successfully.
Query
SHOW WAREHOUSES LIKE 'WHALT\\_T156';
Result1 row · 38 columns · scroll →
namestatetypesizemin_cluster_countmax_cluster_countstarted_clustersrunningqueuedis_defaultis_currentauto_suspendauto_resumeavailableprovisioningquiescingothercreated_onresumed_onupdated_onownercommentenable_query_accelerationquery_acceleration_max_scale_factorresource_monitoractivespendingsfailedsuspendeduuidscaling_policyowner_role_typeresource_constraintgenerationquery_throughput_multipliermax_query_performance_leveldisabled_reasonstables
WHALT_T156STARTEDSTANDARDX-Small12100NY60true 1000002026-10-06 11:10:34.376000-07:002026-10-06 11:10:35.552000-07:002026-10-06 11:10:37.414000-07:00ACCOUNTADMINepisode 156 - two clusters if allowedtrue8null100072652554821ECONOMYROLESTANDARD_GEN_22NULLNULLNULLNULL
Query
SELECT "name", "min_cluster_count", "max_cluster_count", "scaling_policy"
  FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));
Result1 row · 4 columns
namemin_cluster_countmax_cluster_countscaling_policy
WHALT_T15612ECONOMY

ECONOMY, where it said STANDARD before.

What a catalogue value does not prove

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
ALTER WAREHOUSE WHALT_T156 SET MIN_CLUSTER_COUNT = 2, MAX_CLUSTER_COUNT = 1;
Query failed — Snowflake returned an error
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
ALTER WAREHOUSE WHALT_T156 SET SCALING_POLICY = THRIFTY;
Query failed — Snowflake returned an error
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
CREATE OR REPLACE WAREHOUSE WHSNOW_T156
    WAREHOUSE_TYPE      = 'SNOWPARK-OPTIMIZED'
    WAREHOUSE_SIZE      = MEDIUM
    AUTO_SUSPEND        = 60
    INITIALLY_SUSPENDED = TRUE;
Result1 row · 1 column
status
Warehouse WHSNOW_T156 successfully created.
Query
SHOW WAREHOUSES LIKE 'WHSNOW\\_T156';
Result1 row · 38 columns · scroll →
namestatetypesizemin_cluster_countmax_cluster_countstarted_clustersrunningqueuedis_defaultis_currentauto_suspendauto_resumeavailableprovisioningquiescingothercreated_onresumed_onupdated_onownercommentenable_query_accelerationquery_acceleration_max_scale_factorresource_monitoractivespendingsfailedsuspendeduuidscaling_policyowner_role_typeresource_constraintgenerationquery_throughput_multipliermax_query_performance_leveldisabled_reasonstables
WHSNOW_T156SUSPENDEDSNOWPARK-OPTIMIZEDMedium11000NY60true2026-10-06 11:10:39.260000-07:002026-10-06 11:10:39.260000-07:002026-10-06 11:10:39.292000-07:00ACCOUNTADMINfalse8null0001283799292STANDARDROLEMEMORY_16XNULLNULLNULLNULLNULL

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
ALTER WAREHOUSE WH_T156 SET STATEMENT_TIMEOUT_IN_SECONDS = 600;
Result1 row · 1 column
status
Statement executed successfully.
Query
SHOW PARAMETERS LIKE 'STATEMENT_TIMEOUT_IN_SECONDS' IN WAREHOUSE WH_T156;
Result1 row · 6 columns · scroll →
keyvaluedefaultleveldescriptiontype
STATEMENT_TIMEOUT_IN_SECONDS600172800WAREHOUSETimeout in seconds for statements: statements are automatically canceled if they run for longer; if set to zero, max value (604800) is enforced.NUMBER
Query
SELECT "key", "value", "default", "level"
  FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));
Result1 row · 4 columns
keyvaluedefaultlevel
STATEMENT_TIMEOUT_IN_SECONDS600172800WAREHOUSE

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
ALTER WAREHOUSE WH_T156 UNSET STATEMENT_TIMEOUT_IN_SECONDS;
Result1 row · 1 column
status
Statement executed successfully.
Query
SHOW PARAMETERS LIKE 'STATEMENT_TIMEOUT_IN_SECONDS' IN WAREHOUSE WH_T156;
Result1 row · 6 columns · scroll →
keyvaluedefaultleveldescriptiontype
STATEMENT_TIMEOUT_IN_SECONDS172800172800Timeout in seconds for statements: statements are automatically canceled if they run for longer; if set to zero, max value (604800) is enforced.NUMBER
Query
SELECT "key", "value", "default", "level"
  FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));
Result1 row · 4 columns
keyvaluedefaultlevel
STATEMENT_TIMEOUT_IN_SECONDS172800172800

The value is back to 172800, the same as the default, and the level is empty.

How to read the level column

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
ALTER WAREHOUSE WHALT_T156 RENAME TO WHRENAMED_T156;
Result1 row · 1 column
status
Statement executed successfully.
Query
SHOW WAREHOUSES LIKE 'WHALT\\_T156';
Result0 rows · 38 columns · scroll →
namestatetypesizemin_cluster_countmax_cluster_countstarted_clustersrunningqueuedis_defaultis_currentauto_suspendauto_resumeavailableprovisioningquiescingothercreated_onresumed_onupdated_onownercommentenable_query_accelerationquery_acceleration_max_scale_factorresource_monitoractivespendingsfailedsuspendeduuidscaling_policyowner_role_typeresource_constraintgenerationquery_throughput_multipliermax_query_performance_leveldisabled_reasonstables

The old name returns nothing at all. And the new one?

Query
SHOW WAREHOUSES LIKE 'WHRENAMED\\_T156';
Result1 row · 38 columns · scroll →
namestatetypesizemin_cluster_countmax_cluster_countstarted_clustersrunningqueuedis_defaultis_currentauto_suspendauto_resumeavailableprovisioningquiescingothercreated_onresumed_onupdated_onownercommentenable_query_accelerationquery_acceleration_max_scale_factorresource_monitoractivespendingsfailedsuspendeduuidscaling_policyowner_role_typeresource_constraintgenerationquery_throughput_multipliermax_query_performance_leveldisabled_reasonstables
WHRENAMED_T156STARTEDSTANDARDX-Small12100NN60true 1000002026-10-06 11:10:34.376000-07:002026-10-06 11:10:35.552000-07:002026-10-06 11:10:42.597000-07:00ACCOUNTADMINepisode 156 - two clusters if allowedtrue8null100072652554821ECONOMYROLESTANDARD_GEN_22NULLNULLNULLNULL
Query
SELECT "name", "size", "min_cluster_count", "max_cluster_count",
       "scaling_policy", "comment"
  FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));
Result1 row · 6 columns · scroll →
namesizemin_cluster_countmax_cluster_countscaling_policycomment
WHRENAMED_T156X-Small12ECONOMYepisode 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
ALTER WAREHOUSE NO_SUCH_WAREHOUSE_T156 SET AUTO_SUSPEND = 60;
Query failed — Snowflake returned an error
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
ALTER WAREHOUSE IF EXISTS NO_SUCH_WAREHOUSE_T156 SET AUTO_SUSPEND = 60;
Result1 row · 1 column
status
Statement executed successfully.
Query
SHOW WAREHOUSES LIKE 'NO\\_SUCH\\_WAREHOUSE\\_T156';
Result0 rows · 38 columns · scroll →
namestatetypesizemin_cluster_countmax_cluster_countstarted_clustersrunningqueuedis_defaultis_currentauto_suspendauto_resumeavailableprovisioningquiescingothercreated_onresumed_onupdated_onownercommentenable_query_accelerationquery_acceleration_max_scale_factorresource_monitoractivespendingsfailedsuspendeduuidscaling_policyowner_role_typeresource_constraintgenerationquery_throughput_multipliermax_query_performance_leveldisabled_reasonstables

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
ALTER WAREHOUSE WH_T156 SET AUTO_SUSPENDED = 60;
Query failed — Snowflake returned an error
001420 (22023): SQL compilation error:
invalid property 'AUTO_SUSPENDED' for 'WAREHOUSE'

001420, invalid property. And a size that is not a size.

Alter
ALTER WAREHOUSE WH_T156 SET WAREHOUSE_SIZE = ENORMOUS;
Query failed — Snowflake returned an error
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
ALTER WAREHOUSE WH_T156 SET;
Query failed — Snowflake returned an error
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.

Query
SHOW WAREHOUSES LIKE 'COMPUTE\\_WH';
Result1 row · 38 columns · scroll →
namestatetypesizemin_cluster_countmax_cluster_countstarted_clustersrunningqueuedis_defaultis_currentauto_suspendauto_resumeavailableprovisioningquiescingothercreated_onresumed_onupdated_onownercommentenable_query_accelerationquery_acceleration_max_scale_factorresource_monitoractivespendingsfailedsuspendeduuidscaling_policyowner_role_typeresource_constraintgenerationquery_throughput_multipliermax_query_performance_leveldisabled_reasonstables
COMPUTE_WHSTARTEDSTANDARDX-Small11100YN300true 1000002026-09-21 18:36:58.764000-07:002026-10-06 11:05:18.848000-07:002026-10-06 11:05:18.848000-07:00ACCOUNTADMINtrue8null1000283799204STANDARDROLESTANDARD_GEN_22NULLNULLNULLNULL
Query
SELECT "name", "state", "size", "auto_suspend", "auto_resume", "type",
       "min_cluster_count", "max_cluster_count"
  FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));
Result1 row · 8 columns · scroll →
namestatesizeauto_suspendauto_resumetypemin_cluster_countmax_cluster_count
COMPUTE_WHSTARTEDX-Small300trueSTANDARD11

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
DROP WAREHOUSE IF EXISTS WH_T156;
Result1 row · 1 column
status
WH_T156 successfully dropped.
Drop
DROP WAREHOUSE IF EXISTS WHRENAMED_T156;
Result1 row · 1 column
status
WHRENAMED_T156 successfully dropped.
Query
SHOW WAREHOUSES;
Result3 rows · 38 columns · scroll →
namestatetypesizemin_cluster_countmax_cluster_countstarted_clustersrunningqueuedis_defaultis_currentauto_suspendauto_resumeavailableprovisioningquiescingothercreated_onresumed_onupdated_onownercommentenable_query_accelerationquery_acceleration_max_scale_factorresource_monitoractivespendingsfailedsuspendeduuidscaling_policyowner_role_typeresource_constraintgenerationquery_throughput_multipliermax_query_performance_leveldisabled_reasonstables
COMPUTE_WHSTARTEDSTANDARDX-Small11100YN300true 1000002026-09-21 18:36:58.764000-07:002026-10-06 11:05:18.848000-07:002026-10-06 11:05:18.848000-07:00ACCOUNTADMINtrue8null1000283799204STANDARDROLESTANDARD_GEN_22NULLNULLNULLNULL
SNOWFLAKE_LEARNING_WHSUSPENDEDSTANDARDX-Small11000NN300true2026-09-21 18:33:47.899000-07:002026-09-21 18:33:47.899000-07:002026-09-21 18:33:47.913000-07:00ACCOUNTADMINCreated by Snowflake during account provisioningtrue8null0001283799128STANDARDROLESTANDARD_GEN_22NULLNULLNULLNULL
SYSTEM$STREAMLIT_NOTEBOOK_WHSUSPENDEDSTANDARDX-Small110000NN60true2026-09-21 18:33:46.101000-07:002026-09-21 18:33:46.115000-07:002026-09-21 18:33:46.136000-07:00ACCOUNTADMINtrue8null0001283799044STANDARDROLESTANDARD_GEN_22NULLNULLNULLNULL

The same three we started with. The tidy-up check after it went looking in the wrong place, and it is worth showing why.

Query
SELECT COUNT(*) AS WAREHOUSES_OF_MINE_LEFT
  FROM DEMO_DB.INFORMATION_SCHEMA.WAREHOUSES
 WHERE ENDSWITH(UPPER(WAREHOUSE_NAME), '_T156');
Query failed — Snowflake returned an error
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.

Query
SELECT CURRENT_WAREHOUSE() AS THE_WAREHOUSE,
       CURRENT_ROLE()      AS THE_ROLE,
       CURRENT_DATABASE()  AS THE_DATABASE,
       CURRENT_SCHEMA()    AS THE_SCHEMA;
Result1 row · 4 columns
THE_WAREHOUSETHE_ROLETHE_DATABASETHE_SCHEMA
NULLACCOUNTADMINDEMO_DBPUBLIC

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.
  • UNSET leaves NULL, not the default. auto_suspend read NULL rather than going back to 600.
  • UNSET on something that was never set succeeds silently.
  • One SET can change several properties at once, and all of them take together.
  • RESUME on a running warehouse is 090063. RESUME IF SUSPENDED succeeds on the same warehouse.
  • ABORT ALL QUERIES on an idle warehouse is accepted and changes nothing.
  • MAX_CLUSTER_COUNT and SCALING_POLICY are 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 is 001422.
  • An empty level in SHOW PARAMETERS means nobody set it and you are looking at the default.
  • RENAME TO carries the size, the cluster counts, the policy and the comment across.
  • ALTER ... IF EXISTS succeeds without creating anything.
  • 001420 is a property Snowflake does not know. 001421 is a real property with a value it will not take.
Next in this series

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.