Overview
The SHOW SCHEMAS EXTENDED statement is used to view the list of schemas under the current workspace, with the EXTENDED keyword showing each schema's type (managed or external). The WHERE clause can be used to filter for external schemas.
Syntax
Parameter Description
| Parameter | Required | Description |
|---|---|---|
EXTENDED | No | Adds a type column to the result, showing the schema type |
WHERE expr | No | Filters by returned columns; only effective when EXTENDED is used |
Return Columns
Without EXTENDED
| Column Name | Type | Description |
|---|---|---|
schema_name | STRING | Schema name |
With EXTENDED
| Column Name | Type | Description |
|---|---|---|
schema_name | STRING | Schema name |
type | STRING | Schema type: managed, external, or shared |
Examples
Example 1: View All Schemas
Sample output:
Example 2: View All Schemas and Their Types
Sample output:
Example 3: Filter External Schemas
Sample output (when external schemas exist):
Example 4: Filter Managed Schemas
Sample output (partial):
Notes
- The
WHEREclause can only reference columns returned inEXTENDEDmode (schema_name,type). - Possible values for
typearemanaged(managed schema),external(external schema), andshared(shared schema introduced via SHARE). - If no external schemas exist under the current workspace,
WHERE type='external'will return an empty result set.
