SHOW COMPUTE POOLS

statementsupportedContainer services & dev tooling

docs.snowflake.com ↗

Object: COMPUTE POOL

Lists the compute pools in your account for which you have access privileges. Snowpark Container Services is available to accounts in AWS, Microsoft Azure, and Google Cloud Platform commercial regions, with some exceptions. For more information, see Available regions and considerations.

Syntax

supportedpartialnot supportednot scored

SHOW COMPUTE POOLS [ LIKE '<pattern>' ]
                   [ STARTS WITH '<name_string>' ]
                   [ LIMIT <ROWS> [ FROM '<name-string>' ] ]

Parameters

NameRequiredDescription
LIKE 'pattern'Optionally filters the command output by object name. The filter uses case-insensitive pattern matching, with support for SQL wildcard characters (% and _). For example, the following patterns return the same results: ... LIKE '%testing%' ... ... LIKE '%TESTING%' ... Default: No value (no filtering is applied to the output).
STARTS WITH 'name_string'Optionally filters the command output based on the characters that appear at the beginning of the object name. The string must be enclosed in single quotes and is case sensitive. For example, the following strings return different results: ... STARTS WITH 'B' ... ... STARTS WITH 'b' ... Default: No value (no filtering is applied to the output)
LIMIT rows [ FROM 'name_string' ]Optionally limits the maximum number of rows returned, while also enabling “pagination” of the results. The actual number of rows returned might be less than the specified limit. For example, the number of existing objects is less than the specified limit. The optional FROM 'name_string' subclause effectively serves as a “cursor” for the results. This enables fetching the specified number of rows following the first row whose object name matches the specified string: The string must be enclosed in single quotes and is case sensitive. The string does not have to include the full object name; partial names are supported. Default: No value (no limit is applied to the output) Note For SHOW commands that support both the FROM 'name_string' and STARTS WITH 'name_string' clauses, you can combine both of these clauses in the same statement. However, both conditions must be met or they cancel out each other and no results are returned. In addition, objects are returned in lexicographic order by name, so FROM 'name_string' only returns rows with a higher lexicographic value than the rows returned by STARTS WITH 'name_string'. For example: ... STARTS WITH 'A' LIMIT ... FROM 'B' would return no results. ... STARTS WITH 'B' LIMIT ... FROM 'A' would return no results. ... STARTS WITH 'A' LIMIT ... FROM 'AB' would return results (if any rows match the input strings).

Usage notes

Access control requirements

A role used to execute this operation must have the following privileges at a minimum: Privilege | Object | Notes Any one of these privileges: OWNERSHIP, USAGE, MONITOR, or OPERATE | Compute pool | For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.

Output

The command output provides compute pool properties and metadata in the following columns: Column | Description name | Compute pool name. state | State of the compute pool. For more information, see Compute pool lifecycle. min_nodes | Minimum number of nodes in the compute pool. max_nodes | Maximum number of nodes in the compute pool. instance_family | Machine type of nodes in the compute pool. num_services | Number of services running on the compute pool. num_jobs | Number of jobs running on the compute pool. auto_suspend_secs | Number of seconds of inactivity after which Snowflake automatically suspends the compute pool. auto_resume | Whether to automatically resume a compute pool when Snowflake starts a service or job. active_nodes | Number of nodes in the compute pool that are active (one or more services or jobs are running). idle_nodes | Number of nodes in the compute pool that are idle (no service or job is running). target_nodes | Indicates the number of nodes that Snowflake is targeting for your compute pool. If active_nodes isn’t equal to the target_nodes, Snowflake autoscales the cluster to add or remove the nodes. For more information, see About the target_nodes compute pool property. created_on | Date and time when the compute pool was created. resumed_on | Date and time when the suspended compute pool was resumed. updated_on | Date and time when the compute pool was updated using ALTER COMPUTE POOL. owner | Role that owns the compute pool. comment | Specifies a comment for the compute pool. is_exclusive | true if the compute pool is created exclusively for a Snowflake Native App; false otherwise. application | Name of the Snowflake Native App if the compute pool is created exclusively for the app. Otherwise, NULL. placement_group | Specifies the fault domain into which the compute pool nodes are placed. A fault domain is similar to the cloud provider’s availability zone. For more information, see Compute pool placement. backup_instance_families | Ordered list of backup instance families configured for the compute pool; the order determines fallback priority. NULL if no backup families are configured. For more information, see backup instance types.

See also

Referenced by