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,

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

DatabricksPract
New Contributor II

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