cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Get metadata of tables in hive metastore

DatabricksPract
New Contributor II

Hi team,

I have a requirement to get the metadata of tables available in databricks hive metastore.

Is there any way to get the metadata of all the tables inspite of looping through tables using Describe table_name.

As hive metastore doesnot support information schema, please suggest if we have any other approaches.

Thanks in advance,

1 ACCEPTED SOLUTION

Accepted Solutions

Tharun-Kumar
Databricks Employee
Databricks Employee

@DatabricksPract 

You can use 

%sql
show table extended in <database_name> like '*'

This would give the information of the all the tables in the database provided.

View solution in original post

2 REPLIES 2

Tharun-Kumar
Databricks Employee
Databricks Employee

@DatabricksPract 

You can use 

%sql
show table extended in <database_name> like '*'

This would give the information of the all the tables in the database provided.

DatabricksPract
New Contributor II

@Tharun-Kumar - Thanks for your quick reply, it worked.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group