hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gopal Vijayaraghavan <gop...@apache.org>
Subject Re: Getting column statistics on paritioned Hive tables
Date Thu, 18 Aug 2016 20:32:49 GMT
> Is there any way to access the column statistics for the whole table?

There's no column statistics for the whole table - the only way to get one
is to merge all the partition column statistics.

The metastore API actually exposes this (if you're looking for schema info
to read in a program).

https://hive.apache.org/javadocs/r2.0.1/api/org/apache/hadoop/hive/metastor
e/api/ThriftHiveMetastore.Processor.get_aggr_stats_for.html

+
https://github.com/apache/hive/blob/master/itests/hive-unit/src/test/java/o
rg/apache/hadoop/hive/metastore/hbase/TestHBaseAggrStatsCacheIntegration.ja
va#L184


 
Cheers,
Gopal
 



Mime
View raw message