Skip to main content
kaif
Bronze ⭐️⭐️⭐️
June 24, 2024
Question

Does Hive supports information schema?

I want to query all tables/columns metadata in hive. The way this is done in other databases like mssql, postgresql is to query information_schema views, but i don't see anything like that in hive. Can someone confirm is information_schema doesn't exists in hive. If it doesn't exists what would be a way to query metadata ??

Tried querying information_schema, but didn't get anything.


2 replies

VidyaSargur
Community Manager
Community Manager
June 25, 2024

@kaif, Welcome to our community! To help you get the best possible answer, I have tagged our Hive experts  @smruti @ggangadharan who may be able to assist you further.

Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.

Translate
Regards, Vidya Sargur, Community Manager Was your question answered? Make sure to mark the answer as the accepted solution. If you find a reply useful, say thanks by clicking on the thumbs up button.
smruti
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
June 28, 2024

@kaif Hive does have information_schema database, that you can access from beeline or Hue. You also have SYS db that fetches different information from the RDBMS that is used to store hive metadata. 

Here's the DDLs of those tables, and this will also give you some idea on what data they store.

Translate