compute_pools
Description
The compute_pools system table exposes metadata about the compute pools defined in the current organization. Each row represents a single compute pool and includes its configuration, current lifecycle state, and audit fields.
Use this table to programmatically inspect compute pool state, check for errors, or filter pools by size or status.
Only rows for compute pools on which the current role has USAGE privileges are returned.
Syntax
SELECT column [, ...]
FROM deltastream.sys."compute_pools"
[ WHERE condition ];Columns
name
VARCHAR
No
Name of the compute pool.
pool_size
VARCHAR
No
Size class of the compute pool. One of small, medium, large.
timeout_min
INTEGER
No
Number of minutes of inactivity after which the compute pool automatically stops. 0 means no timeout.
intended_state
VARCHAR
No
The state the compute pool has been instructed to be in. One of running, stopped.
actual_state
VARCHAR
No
The observed current state of the compute pool. One of running, stopped, starting, stopping, errored.
error_messages
VARCHAR
Yes
Any error messages associated with the compute pool when actual_state is errored.
owner
VARCHAR
No
The role that owns the compute pool.
created_by_role
VARCHAR
No
The role that created the compute pool.
created_by_role_deleted
BOOLEAN
No
Whether the creating role has since been deleted.
created_by
VARCHAR
No
The user that created the compute pool.
created_at
TIMESTAMP_LTZ
No
Timestamp when the compute pool was created.
updated_by_role
VARCHAR
No
The role that last updated the compute pool.
updated_by_role_deleted
BOOLEAN
No
Whether the last updating role has since been deleted.
updated_by
VARCHAR
No
The user that last updated the compute pool.
updated_at
TIMESTAMP_LTZ
No
Timestamp when the compute pool was last updated.
organization_id
VARCHAR
No
The unique identifier of the organization this compute pool belongs to.
Examples
List all compute pools
The following retrieves all compute pools visible to the current role:
Find compute pools that are running
The following filters to only pools currently in the running state:
Find compute pools in an error state
The following returns any compute pools with errors along with the error detail:
See Also
Last updated

