DESC Command Reference

Description

Displays the detailed structure or properties of a specified object in Singdata Lakehouse. DESCRIBE can be abbreviated as DESC.

Syntax

DESC[RIBE] <object_type> [ EXTENDED ] <object_name>

Parameters

ParameterDescriptionRequired
<object_type>The type of object to describe, such as TABLE, SCHEMA, VCLUSTER, etc.Yes
EXTENDEDDisplay more detailed informationNo
<object_name>The object name, may include a schema prefixYes

Supported Object Types

Object TypeSyntax ExampleDescription
Regular TableDESC TABLE <name>Show table structure (column names, types, comments)
Dynamic TableDESC DYNAMIC TABLE <name>Show dynamic table structure and refresh configuration
Materialized ViewDESC MATERIALIZED VIEW <name>Show materialized view structure
ViewDESC VIEW <name>Show view definition
External TableDESC EXTERNAL TABLE <name>Show external table structure
Table StreamDESC TABLE STREAM <name>Show Stream configuration and schema
SchemaDESC SCHEMA <name>Show Schema information
External SchemaDESC EXTERNAL SCHEMA <name>Show external Schema configuration
External CatalogDESC CATALOG <name>Show External Catalog information
Compute ClusterDESC VCLUSTER <name>Show VCluster specifications and status
ConnectionDESC CONNECTION <name>Show Connection configuration
Data ShareDESC SHARE <name>Show Share configuration
IndexDESC INDEX <name>Show index information
JobDESC JOB <job_id>Show job execution information
History VersionDESC HISTORY <name>Show table history versions
FunctionDESC FUNCTION <name>Show function definition
SynonymDESC SYNONYM <name>Show synonym mapping

Required Permissions

Executing DESC statements typically only requires basic view permissions (USAGE or SELECT) on the target object.

Notes

  • DESCRIBE and DESC are equivalent and can be used interchangeably.
  • Some object types support the EXTENDED parameter to display more information.
  • DESC HISTORY can view history version information for tables, dynamic tables, and materialized views.

Syntax Reference

Data Objects

Schema and Catalog

Compute and Connections

Indexes and Jobs

Others