28787
DISCUSSIONS
102052
MEMBERS
3161
ARTICLES
Created 03-15-2016 04:45 AM
For reasons I won't go into we have a need to provide information about the partitions in a table.
The following statement provides that info:
show partitions database.table;
However that doesn't make the returned dataset queryable.
What I want to do is put a view over the top of that information so it can be filtered/aggregated. Essentially I want to do this:
CREATE VIEW database.<table>_partitions
as
show partitions database.table;
but I can't do that of course.
Is there a way to query the hive metastore in order to get this information?