Skip to content

Instantly share code, notes, and snippets.

@OneCricketeer
Created October 23, 2017 22:27
Show Gist options
  • Save OneCricketeer/b98b17255bced02752aa049fcabeae85 to your computer and use it in GitHub Desktop.
Save OneCricketeer/b98b17255bced02752aa049fcabeae85 to your computer and use it in GitHub Desktop.
Hive Metastore MySQL tables
select *
-- CONCAT(d.name, '.', t.TBL_NAME) as name,
-- d.DB_LOCATION_URI as loc,
-- t.TBL_TYPE as type
from hive.DBS as d
join hive.TBLS as t
on t.DB_ID = d.DB_ID
order by d.NAME,t.TBL_NAME
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment