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.