I have a table with 1000+ partitions.
"Show partitions
" command only lists a small number of partitions.
How can i show all partitions?
Update:
I found "
show partitions
" command only lists exactly 500 partitions."
select ... where ...
" only processes the 500 partitions!
CLI has some limit when ouput is displayed. I suggest to export output into local file:
Okay, I'm writing this answer by extending wmky's answer above & also, assuming that you've configured mysql for your metastore instead of derby.
The above query gives you all possible values of the partition columns.
Example:
I'm going to fetch the values of partition columns.
Returns all partition columns.
Note:
JOIN
tableDBS
ONDB_ID
when there is a DB involved (i.e, when, multiple DB's have same table_name)hive> show partitions table_name;
You can see Hive MetaStore tables,Partitions information in table of "PARTITIONS". You could use "TBLS" join "Partition" to query special table partitions.