DESCRIBE Statement#
The DESCRIBE statement shows the schema of a table or the execution plan of a query.
DESCRIBE TABLE#
Shows the schema (column names and data types) of a table.
Syntax#
1 | |
| Parameter | Description |
|---|---|
<table_name> | Name of the table to describe. Can include catalog and namespace. |
Examples#
Describe the schema of table T.
1 | |
Describe the schema with the optional TABLE keyword.
1 | |
Describe a table in a specific catalog and namespace.
1 | |
Output#
Returns a DataFrame with columns:
| Column | Description |
|---|---|
column_name | Name of the column |
type | Data type of the column |
DESCRIBE SELECT#
Shows the query execution plan for a SELECT statement.
Syntax#
1 | |
| Parameter | Description |
|---|---|
<select_statement> | The SELECT statement to describe. |
Examples#
Describe the execution plan for a simple query.
1 | |
Describe the execution plan for a query with joins.
1 | |
Work in Progress
The SQL Reference documents are a work in progress.