<?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: count(*) in hive and the wc of hadoop file is different. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/count-in-hive-and-the-wc-of-hadoop-file-is-different/m-p/172729#M37552</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12437/balavigneshnagamuthuvenkatesan.html" nodeid="12437"&gt;@Bala Vignesh N V&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes, the difference in count is expected. ORC converts the table data into groups of rows called stripes along with auxiliary information in a file footer, default size of stripe is 250 MB. Hence, there will be difference in wc -l on orc file compared to actual numbers of rows in the table.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Aug 2016 17:06:39 GMT</pubDate>
    <dc:creator>ssubhas</dc:creator>
    <dc:date>2016-08-11T17:06:39Z</dc:date>
    <item>
      <title>count(*) in hive and the wc of hadoop file is different.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/count-in-hive-and-the-wc-of-hadoop-file-is-different/m-p/172728#M37551</link>
      <description>&lt;P&gt;Value differs when I check the count(*) using hive query and when I check the no of lines in the corresponding file. Seelect count(*) from table gives 100 as output where as wc -l of the corresponding file gives 30. My table is in ORC format. Is it how orc behaves?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 17:02:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/count-in-hive-and-the-wc-of-hadoop-file-is-different/m-p/172728#M37551</guid>
      <dc:creator>balavignesh_nag</dc:creator>
      <dc:date>2016-08-11T17:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: count(*) in hive and the wc of hadoop file is different.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/count-in-hive-and-the-wc-of-hadoop-file-is-different/m-p/172729#M37552</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12437/balavigneshnagamuthuvenkatesan.html" nodeid="12437"&gt;@Bala Vignesh N V&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes, the difference in count is expected. ORC converts the table data into groups of rows called stripes along with auxiliary information in a file footer, default size of stripe is 250 MB. Hence, there will be difference in wc -l on orc file compared to actual numbers of rows in the table.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 17:06:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/count-in-hive-and-the-wc-of-hadoop-file-is-different/m-p/172729#M37552</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2016-08-11T17:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: count(*) in hive and the wc of hadoop file is different.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/count-in-hive-and-the-wc-of-hadoop-file-is-different/m-p/172730#M37553</link>
      <description>&lt;P&gt;Thanks &lt;A href="https://community.hortonworks.com/users/5019/ssubhas.html"&gt;Sindhu&lt;/A&gt;. What happens when we store it as TEXTFILE. The count should remain the same right?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 17:15:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/count-in-hive-and-the-wc-of-hadoop-file-is-different/m-p/172730#M37553</guid>
      <dc:creator>balavignesh_nag</dc:creator>
      <dc:date>2016-08-11T17:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: count(*) in hive and the wc of hadoop file is different.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/count-in-hive-and-the-wc-of-hadoop-file-is-different/m-p/172731#M37554</link>
      <description>&lt;P&gt;Yes, it would be same.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 17:44:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/count-in-hive-and-the-wc-of-hadoop-file-is-different/m-p/172731#M37554</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2016-08-11T17:44:44Z</dc:date>
    </item>
  </channel>
</rss>

