Skip to main content

SHOW COMPUTE GROUPS

Description​

Displays the list of compute groups that the current user has permissions to use.

In VeloDB Cloud, compute groups correspond to warehouse clusters. The result contains only groups on which the current SQL user has USAGE privileges.

Syntax​

SHOW COMPUTE GROUPS

Return value​

Returns a list of compute groups that the current user has permissions for. The result includes the fields below.

VeloDB Cloud:

  • Name - The name of the compute group
  • IsCurrent - Whether the current user is using this compute group
  • Users - Usernames that have set this compute group as their default compute group
  • BackendNum - The number of backends this compute group has
  • SubComputeGroups / Policy / Properties - Information about the virtual compute group

The results are sorted by compute group name.

Example​

List the compute groups visible to your SQL user. The following output is illustrative.

SHOW COMPUTE GROUPS;

The result is:

+-----------------+-----------+-------+------------+
| Name | IsCurrent | Users | BackendNum |
+-----------------+-----------+-------+------------+
| compute_cluster | TRUE | | 3 |
+-----------------+-----------+-------+------------+

Access control requirements​

The current SQL user sees only compute groups on which the user has USAGE. This statement does not grant cluster or table access.

Usage notes​

  • If the current user has no permissions for any compute group, SHOW COMPUTE GROUPS will return an empty list.
  • SHOW CLUSTERS is the equivalent statement in VeloDB Cloud.

Ask AI