Hive describe command to check the meta data of the Hive table

We can see the Hive tables structures using the Describe commands. This command shows meta data about the hive table which includes list of columns,data types and location of the table.There are three ways to describe a table in Hive.

Describe table_name:

If you want to see the primary information of the Hive table such as only the list of columns and its data types,the describe command will help you on this.

Syntax:

Example:

Describe extended table_name:

The describe extended command will show the detailed information of the table such as list of columns , data type of the columns,table type,location of the table,table size and so on.

Syntax:

Example:

Describe formatted table_name:

The describe formatted command returns the detailed table information in a clean manner. The results are easy to understand.The complete table information is displayed in a clean manner by describe formatted command

Syntax:

Example:

Recommended Articles