I have a partitioned table - with 201 partitions. I need to find latest partition in this table and use it to post process my data. The query to find list of all partitions
if you know your table location in hdfs. This is the most quick way without even opening the hive shell.
You can check you table location in hdfs using command;
show create table
then
hdfs dfs -ls | sort -k6,7 | tail -1
It will show latest partition location in hdfs