Skip to main content

DESCRIBE TABLE

Provide high-level information regarding the overall column properties of an existing dataset. Dremio displays the column headers indicating the type of information being described and rows for each table column with their associated attributes described, such as data types, properties, and policies.

Syntax
DESCRIBE TABLE <table_name>

Parameters

<table_name> String

The name of the table that you want to describe.

Example

Describing a table
DESCRIBE TABLE taxistats
COLUMN_NAMEDATA_TYPEIS_NULLABLENUMERIC_PRECISIONNUMERIC_SCALEEXTENDED_PROPERTIESMASKING_POLICYSORT_ORDER_PRIORITY
pickup_datetimeTIMESTAMPYESnullnull[][]1
passenger_countBIGINTYES640[]count_hidenull
trip_distance_miDOUBLEYES53null[][]null
fare_amountDOUBLEYES53null[][]null
tip_amountDOUBLEYES53null[][]null
total_amountDOUBLEYES53null[][]null

The cells containing a '[]' indicate "empty" values.

Columns

ColumnData TypeDescription
COLUMN_NAMEstringThe name of the column in the table.
DATA_TYPEstringThe data type allowed for values in the column.
IS_NULLABLEbooleanIndicates whether values in the column can be null.
NUMERIC_PRECISIONintegerThe maximum number of digits allowed in a value.
NUMERIC_SCALEintegerThe maximum number of digits allowed to the right of the decimal point.
EXTENDED_PROPERTIESarrayAdditional properties, if any, that have been set on the column.
MASKING_POLICYstringThe masking policy, if any, that is set on the column.
SORT_ORDER_PRIORITYintegerIndicates the sort order of the columns that are used for sorting, if the CREATE TABLE command that created the table used the LOCALSORT BY clause or if the table was altered by an ALTER TABLE command that used the LOCALSORT BY clause. For example, if a table was altered, and the clause LOCALSORT BY (colA, colB) was used, the table is sorted by colA and then by colB, the value for colA is 1, while the value for colB is 2. The lower the number, the higher the priority.