<?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 Re: hive count(*) not working in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/hive-count-not-working/m-p/216895#M178804</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt; &lt;/P&gt;&lt;P&gt;It works after I set this in hive-site.xml&lt;/P&gt;&lt;P&gt;I am not sure the reason, but it was forced to run mapreduce&lt;/P&gt;&lt;PRE&gt;hive.compute.query.using.stats=false&lt;/PRE&gt;&lt;P&gt;I also found something in hive metastore (mine is MySQL).&lt;/P&gt;&lt;PRE&gt;mysql&amp;gt; SELECT PARAM_VALUE FROM PARTITION_PARAMS AS A, PARTITIONS AS B WHERE A.PARAM_KEY='numRows' and A.PART_ID=B.PART_ID and A.PARAM_VALUE = 0 limit 10;
&lt;/PRE&gt;&lt;P&gt;It seems if PARAM_VALUE is not -1, hive will return this value without running mapreduce.&lt;/P&gt;&lt;P&gt;If PARAM_VALUE equals to -1, mapreduce will be executed.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2017 22:02:35 GMT</pubDate>
    <dc:creator>sula678</dc:creator>
    <dc:date>2017-11-08T22:02:35Z</dc:date>
  </channel>
</rss>

