title: Any way to compute statistics on a hive table for all partitions with a single analyze command?
body: <p>The syntax I see for computing statistics in hive seems to indicate the answer to the title question would be 'no':</p>
  
  <pre><code>ANALYZE TABLE [TABLENAME] PARTITION(parcol1=…, partcol2=….) COMPUTE STATISTICS
  </code></pre>
  
  <p>However, I wanted to throw it out here, since it i surprising that it were always required to write a script to iterate over the partitions to generate the per-partition statements. We have about a thousand partitions on this small table right now and it will be growing by orders of magnitude.</p>
  
  <p>BTW I tried the following without specifying the partition:</p>
  
  <pre><code>hive&gt; analyze table metrics compute statistics;
  FAILED: SemanticException [Error 10115]: Table is partitioned and partition specification is needed
  </code></pre>