SHOW CATALOGS
SHOW CATALOGS queries all catalogs in the current StarRocks cluster, including the internal catalog and external catalogs.
NOTE
SHOW CATALOGS returns external catalogs to users who have the USAGE privilege on that external catalog. If users or roles do not have this privilege on any external catalog, this command returns only the default_catalog.
Syntaxβ
SHOW CATALOGS
Outputβ
+----------+--------+----------+
| Catalog  | Type   | Comment  |
+----------+--------+----------+
The following table describes the fields returned by this statement.
| Field | Description | 
|---|---|
| Catalog | The catalog name. | 
| Type | The catalog type. Internalis returned if the catalog isdefault_catalog. The corresponding catalog type is returned if the catalog is an external catalog, such asHive,Hudi, orIceberg. | 
| Comment | The comments of a catalog. StarRocks does not support adding comments to an external catalog. Therefore, the value is NULLfor an external catalog. If the catalog isdefault_catalog, the comment isAn internal catalog contains this cluster's self-managed tables.by default.default_catalogis the only internal catalog in a StarRocks cluster. | 
Examplesβ
Query all catalogs in the current cluster.
SHOW CATALOGS\G
*************************** 1. row ***************************
Catalog: default_catalog
   Type: Internal
Comment: An internal catalog contains this cluster's self-managed tables.
*************************** 2. row ***************************
Catalog: hudi_catalog
   Type: Hudi
Comment: NULL
*************************** 3. row ***************************
Catalog: iceberg_catalog
   Type: Iceberg
Comment: NULL