Avoiding hdfs scan when querying only partition columns
We have a slow query like:
select max(partition_col_1) from some_table where partition_col_2 = 'x'
and it's super slow, scanning all records (hundreds of billions) in the filtered partitions, even though it's actually not getting anything out of them... select only includes partitioning column. Absolutely no need to read any files I don't think.
Any way or hint to get around this?

