<?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: Bug: Partioning In Hive in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Bug-Partioning-In-Hive/m-p/184229#M58785</link>
    <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/186/sshaw.html" nodeid="186"&gt;@Scott Shaw&lt;/A&gt;. Does it mean I have to update the metadata each time after I truncate the partition? Even if the metadata exists it should not display wrong results. In my case select distinct country from mytable should display only India. &lt;/P&gt;</description>
    <pubDate>Sun, 02 Apr 2017 20:56:53 GMT</pubDate>
    <dc:creator>balavignesh_nag</dc:creator>
    <dc:date>2017-04-02T20:56:53Z</dc:date>
    <item>
      <title>Bug: Partioning In Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Bug-Partioning-In-Hive/m-p/184227#M58783</link>
      <description>&lt;P&gt;I have a hive managed table which is partitioned by country. Now I have inserted data for different countries--&amp;gt; India, Japan, China. Total count of records in hive table is 1000. I have truncated a particular partition say for example I have truncated Japan partition, now the count of rows is reduced to 700. Then If I run the query select distinct country from mytable it displays India,China and Japan even i have no data in the partition country=Japan. I have checked the hadoop file location as well and there are no files underneath the partition. But the distinct of the partitioned column displays Japan as well which should not be. Distinct values of table should return based on the data available on the partitioned folder created in hdfs and no the folder name in HDFS. &lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2017 16:25:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Bug-Partioning-In-Hive/m-p/184227#M58783</guid>
      <dc:creator>balavignesh_nag</dc:creator>
      <dc:date>2017-04-02T16:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Bug: Partioning In Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Bug-Partioning-In-Hive/m-p/184228#M58784</link>
      <description>&lt;P&gt;Hi &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;Truncating the partition will not remove the partition metadata. To remove the metadata for all partitions you'll want to issue the CASCADE statement in an ALTER TABLE statement. This should remove the column metadata for all partitions. &lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-ChangeColumnName/Type/Position/Comment" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-ChangeColumnName/Type/Position/Comment&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2017 18:54:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Bug-Partioning-In-Hive/m-p/184228#M58784</guid>
      <dc:creator>SQLShaw</dc:creator>
      <dc:date>2017-04-02T18:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Bug: Partioning In Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Bug-Partioning-In-Hive/m-p/184229#M58785</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/186/sshaw.html" nodeid="186"&gt;@Scott Shaw&lt;/A&gt;. Does it mean I have to update the metadata each time after I truncate the partition? Even if the metadata exists it should not display wrong results. In my case select distinct country from mytable should display only India. &lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2017 20:56:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Bug-Partioning-In-Hive/m-p/184229#M58785</guid>
      <dc:creator>balavignesh_nag</dc:creator>
      <dc:date>2017-04-02T20:56:53Z</dc:date>
    </item>
  </channel>
</rss>

