<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Viewing Hive Column or Table level Statistics in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Viewing-Hive-Column-or-Table-level-Statistics/m-p/99693#M62733</link>
    <description>&lt;P&gt;Does anyone know of a way to view the statistics which are created after the command "analyze table [myTable] compute statistics;" is executed?&lt;/P&gt;&lt;P&gt;Referenced from here: &lt;A href="http://hortonworks.com/blog/5-ways-make-hive-queries-run-faster/" target="_blank"&gt;http://hortonworks.com/blog/5-ways-make-hive-queries-run-faster/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Dec 2015 02:56:19 GMT</pubDate>
    <dc:creator>wfloyd</dc:creator>
    <dc:date>2015-12-17T02:56:19Z</dc:date>
    <item>
      <title>Viewing Hive Column or Table level Statistics</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Viewing-Hive-Column-or-Table-level-Statistics/m-p/99693#M62733</link>
      <description>&lt;P&gt;Does anyone know of a way to view the statistics which are created after the command "analyze table [myTable] compute statistics;" is executed?&lt;/P&gt;&lt;P&gt;Referenced from here: &lt;A href="http://hortonworks.com/blog/5-ways-make-hive-queries-run-faster/" target="_blank"&gt;http://hortonworks.com/blog/5-ways-make-hive-queries-run-faster/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 02:56:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Viewing-Hive-Column-or-Table-level-Statistics/m-p/99693#M62733</guid>
      <dc:creator>wfloyd</dc:creator>
      <dc:date>2015-12-17T02:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing Hive Column or Table level Statistics</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Viewing-Hive-Column-or-Table-level-Statistics/m-p/99694#M62734</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/170/wfloyd.html" nodeid="170"&gt;@Wes Floyd&lt;/A&gt; Here is Hive Stats detail &lt;A href="https://cwiki.apache.org/confluence/display/Hive/StatsDev"&gt;https://cwiki.apache.org/confluence/display/Hive/S...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/170/wfloyd.html" nodeid="170"&gt;&lt;/A&gt;You can view the stored statistics by issuing the &lt;A href="http://wiki.apache.org/hadoop/Hive/LanguageManual/DDL?highlight=%28describe%29#Describe_Partition"&gt;DESCRIBE&lt;/A&gt; command. Statistics are stored in the Parameters array. Suppose you issue the analyze command for the whole table Table1, then issue the command:&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;DESCRIBE EXTENDED TABLE1;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;then among the output, the following would be displayed:&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;... , parameters:{numPartitions=&lt;/CODE&gt;&lt;CODE&gt;4&lt;/CODE&gt;&lt;CODE&gt;, numFiles=&lt;/CODE&gt;&lt;CODE&gt;16&lt;/CODE&gt;&lt;CODE&gt;, numRows=&lt;/CODE&gt;&lt;CODE&gt;2000&lt;/CODE&gt;&lt;CODE&gt;, totalSize=&lt;/CODE&gt;&lt;CODE&gt;16384&lt;/CODE&gt;&lt;CODE&gt;, ...}, ....&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 02:58:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Viewing-Hive-Column-or-Table-level-Statistics/m-p/99694#M62734</guid>
      <dc:creator>pardeep_kumar</dc:creator>
      <dc:date>2015-12-17T02:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing Hive Column or Table level Statistics</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Viewing-Hive-Column-or-Table-level-Statistics/m-p/99695#M62735</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/139/pardeepkumar.html" nodeid="139"&gt;@Pardeep&lt;/A&gt; &lt;/P&gt;&lt;P&gt;See this thread here: &lt;A target="_blank" href="https://community.hortonworks.com/questions/4759/hive-explain-says-plan-not-optimized-by-cbo-due-to.html"&gt;https://community.hortonworks.com/questions/4759/hive-explain-says-plan-not-optimized-by-cbo-due-to.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;We couldn't find a way to see "columns" stats (analyze table t compute statistics for columns). I think describe extended shows only table stats.&lt;/P&gt;&lt;P&gt;Also looking for a solution to get rid of warning: Plan not optimized by CBO due to missing statistics. Please check log for more details, from above question.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 07:34:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Viewing-Hive-Column-or-Table-level-Statistics/m-p/99695#M62735</guid>
      <dc:creator>gbraccialli3</dc:creator>
      <dc:date>2015-12-17T07:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing Hive Column or Table level Statistics</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Viewing-Hive-Column-or-Table-level-Statistics/m-p/99696#M62736</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/238/gbraccialli.html" nodeid="238"&gt;@Guilherme Braccialli&lt;/A&gt; If you've already analyzed the columns you can issue a describe table command to get column stats:&lt;/P&gt;&lt;P&gt;"As of &lt;A href="https://issues.apache.org/jira/browse/HIVE-1362"&gt;Hive 0.10.0&lt;/A&gt;, the optional parameter FOR COLUMNS computes column statistics for all columns in the specified table (and for all partitions if the table is partitioned). See &lt;A href="https://cwiki.apache.org/confluence/display/Hive/Column+Statistics+in+Hive"&gt;Column Statistics in Hive&lt;/A&gt; for details.&lt;/P&gt;&lt;P&gt;To display these statistics, use DESCRIBE FORMATTED [&lt;EM&gt;db_name&lt;/EM&gt;.]&lt;EM&gt;table_name&lt;/EM&gt; &lt;EM&gt;column_name&lt;/EM&gt; [PARTITION (&lt;EM&gt;partition_spec&lt;/EM&gt;)]."&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/StatsDev#StatsDev-ExistingTables" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/StatsDev#StatsDev-ExistingTables&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 21:55:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Viewing-Hive-Column-or-Table-level-Statistics/m-p/99696#M62736</guid>
      <dc:creator>henrysowell</dc:creator>
      <dc:date>2015-12-18T21:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing Hive Column or Table level Statistics</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Viewing-Hive-Column-or-Table-level-Statistics/m-p/99697#M62737</link>
      <description>&lt;P&gt;Yes, &lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt; and I tried this few times, but we can't see column statistics, only table level.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 21:57:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Viewing-Hive-Column-or-Table-level-Statistics/m-p/99697#M62737</guid>
      <dc:creator>gbraccialli3</dc:creator>
      <dc:date>2015-12-18T21:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing Hive Column or Table level Statistics</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Viewing-Hive-Column-or-Table-level-Statistics/m-p/99698#M62738</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/170/wfloyd.html" nodeid="170"&gt;@Wes Floyd&lt;/A&gt; has this been resolved? Please provide your solution or accept best answer.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 10:21:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Viewing-Hive-Column-or-Table-level-Statistics/m-p/99698#M62738</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-03T10:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing Hive Column or Table level Statistics</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Viewing-Hive-Column-or-Table-level-Statistics/m-p/99699#M62739</link>
      <description>&lt;P&gt;Thank you Pardeep. This helps me understand how to see Table level statistics. Do you have a solution for Column level stats also?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 10:33:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Viewing-Hive-Column-or-Table-level-Statistics/m-p/99699#M62739</guid>
      <dc:creator>wfloyd</dc:creator>
      <dc:date>2016-02-03T10:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing Hive Column or Table level Statistics</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Viewing-Hive-Column-or-Table-level-Statistics/m-p/99700#M62740</link>
      <description>&lt;P&gt;For those interested in viewing column level stats try this...&lt;/P&gt;&lt;PRE&gt;analyze table orderdetails compute statistics for columns;
describe formatted orderdetails.unitprice;

col_name  data_type min max  num_nulls distinct_count avg_col_len max_col_len num_trues num_falses comment
unitprice double    2.0 26.3 0         127                                                         foo&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Jul 2016 23:13:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Viewing-Hive-Column-or-Table-level-Statistics/m-p/99700#M62740</guid>
      <dc:creator>whitsonk</dc:creator>
      <dc:date>2016-07-27T23:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing Hive Column or Table level Statistics</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Viewing-Hive-Column-or-Table-level-Statistics/m-p/99701#M62741</link>
      <description>&lt;P&gt;I've got a working example at &lt;A href="https://github.com/lestermartin/oss-transform-processing-comparison/tree/master/profiling#hive" target="_blank"&gt;https://github.com/lestermartin/oss-transform-processing-comparison/tree/master/profiling#hive&lt;/A&gt; that shows column stats.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 08:27:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Viewing-Hive-Column-or-Table-level-Statistics/m-p/99701#M62741</guid>
      <dc:creator>LesterMartin</dc:creator>
      <dc:date>2017-02-20T08:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing Hive Column or Table level Statistics</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Viewing-Hive-Column-or-Table-level-Statistics/m-p/99702#M62742</link>
      <description>&lt;P&gt;For those looking for an easy graphical tool, the Hive View 2.0 (included with Ambari 2.5 and up) has the ability to view table and column level stats, and to compute them if they are missing.&lt;/P&gt;&lt;P&gt;For more info see &lt;A href="https://hortonworks.com/blog/3-great-reasons-to-try-hive-view-2-0/" target="_blank"&gt;https://hortonworks.com/blog/3-great-reasons-to-try-hive-view-2-0/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Note that column stats are listed under table stats and you can see the individual column's statistics there.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 20:29:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Viewing-Hive-Column-or-Table-level-Statistics/m-p/99702#M62742</guid>
      <dc:creator>carter</dc:creator>
      <dc:date>2017-06-30T20:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing Hive Column or Table level Statistics</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Viewing-Hive-Column-or-Table-level-Statistics/m-p/99703#M62743</link>
      <description>&lt;P&gt;desc formatted &amp;lt;table&amp;gt; &amp;lt;column&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/StatsDev#StatsDev-Examples" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/StatsDev#StatsDev-Examples&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 04:23:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Viewing-Hive-Column-or-Table-level-Statistics/m-p/99703#M62743</guid>
      <dc:creator>ekoifman</dc:creator>
      <dc:date>2018-09-13T04:23:39Z</dc:date>
    </item>
  </channel>
</rss>

