> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# SHOW CATALOGS

> SHOW CATALOGS queries all catalogs in the current cluster, including the internal catalog and external catalogs.

SHOW CATALOGS queries all catalogs in the current 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

```SQL theme={null}
SHOW CATALOGS [LIKE '<pattern>']
```

## Parameters

| **Parameter** | **Description** |
| - | - |
| pattern | Optional. The pattern used to match catalog names by using the `LIKE` clause. `%` matches any number of characters and `_` matches a single character. Only the catalogs whose names match the pattern are returned. |

## Output

```SQL theme={null}
+----------+--------+----------+
| Catalog  | Type   | Comment  |
+----------+--------+----------+
```

The following table describes the fields returned by this statement.

| **Field** | **Description** |
| - | - |
| Catalog | The catalog name. |
| Type | The catalog type. `Internal` is returned if the catalog is `default_catalog`. The corresponding catalog type is returned if the catalog is an external catalog, such as `Hive`, `Hudi`, or `Iceberg`. |
| Comment | The comments of a catalog. The database does not support adding comments to an external catalog. Therefore, the value is `NULL` for an external catalog. If the catalog is `default_catalog`, the comment is `An internal catalog contains this cluster's self-managed tables.` by default. `default_catalog` is the only internal catalog in a cluster. |

## Examples

Query all catalogs in the current cluster.

```SQL theme={null}
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
```

Query the catalogs whose names match a specific pattern.

```SQL theme={null}
SHOW CATALOGS LIKE 'iceberg%'\G
*************************** 1. row ***************************
Catalog: iceberg_catalog
   Type: Iceberg
Comment: NULL
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.