Description
SHOW CATALOGS lists all accessible Catalogs in the current workspace, including locally managed Catalogs and External Catalogs.
Syntax
This command does not accept any parameters.
Return Fields
| Field | Description |
|---|---|
workspace_name | Catalog name |
created_time | Catalog creation time |
category | Catalog type: MANAGED (locally managed), SHARED (shared dataset), EXTERNAL (external catalog, e.g., Hive, Databricks) |
Examples
View the list of Schemas in an external Catalog:
Notes
- Only Catalogs that the current user has permission to access are displayed. Catalogs without permission will not appear in the results.
- External Catalogs (
EXTERNALtype) must be registered in advance viaCREATE EXTERNAL CATALOG, and the corresponding Catalog Connection must be in a connected state to be accessed normally. - To view Schemas and tables within a Catalog, use
SHOW SCHEMAS IN catalog_nameandSHOW TABLES IN catalog_name.schema_name.
