<?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: query on partitioning in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/query-on-partitioning/m-p/366817#M239681</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104190"&gt;@dearvenkat&lt;/a&gt;&amp;nbsp;, The old data will not be affected by this change.&lt;/P&gt;&lt;P&gt;The column you have chosen to be partition of the table is not changing, what is changing is the internal value from N to Y,&lt;/P&gt;&lt;P&gt;So it will create a new partition and the old data will remain on the partition&amp;nbsp;&lt;SPAN&gt;activeFlag=N.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It is the same if you have a partition by date, every day you will have a new partition and the other days remains on the past partitions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope that helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2023 16:22:22 GMT</pubDate>
    <dc:creator>Shmoo</dc:creator>
    <dc:date>2023-03-23T16:22:22Z</dc:date>
    <item>
      <title>query on partitioning</title>
      <link>https://community.cloudera.com/t5/Support-Questions/query-on-partitioning/m-p/366807#M239678</link>
      <description>&lt;P&gt;when we rename partition of a column, would underlying data of the column would also change as per our rename. this is on ORC file format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for ex. I've partition named activeFlag='N', when I rename this partition to activeFlag='Y', would those activeFlag column value change to 'Y' (OR) data would be intact as 'N' only?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 13:54:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/query-on-partitioning/m-p/366807#M239678</guid>
      <dc:creator>dearvenkat</dc:creator>
      <dc:date>2023-03-23T13:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: query on partitioning</title>
      <link>https://community.cloudera.com/t5/Support-Questions/query-on-partitioning/m-p/366814#M239680</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104190"&gt;@dearvenkat&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our Hive experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/34263"&gt;@JoseManuel&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70785"&gt;@Shmoo&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 15:59:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/query-on-partitioning/m-p/366814#M239680</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-03-23T15:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: query on partitioning</title>
      <link>https://community.cloudera.com/t5/Support-Questions/query-on-partitioning/m-p/366817#M239681</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104190"&gt;@dearvenkat&lt;/a&gt;&amp;nbsp;, The old data will not be affected by this change.&lt;/P&gt;&lt;P&gt;The column you have chosen to be partition of the table is not changing, what is changing is the internal value from N to Y,&lt;/P&gt;&lt;P&gt;So it will create a new partition and the old data will remain on the partition&amp;nbsp;&lt;SPAN&gt;activeFlag=N.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It is the same if you have a partition by date, every day you will have a new partition and the other days remains on the past partitions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope that helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 16:22:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/query-on-partitioning/m-p/366817#M239681</guid>
      <dc:creator>Shmoo</dc:creator>
      <dc:date>2023-03-23T16:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: query on partitioning</title>
      <link>https://community.cloudera.com/t5/Support-Questions/query-on-partitioning/m-p/366818#M239682</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70785"&gt;@Shmoo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Follow-up questions:&lt;/P&gt;&lt;P&gt;1. So, this PARTITION RENAME will only update reference folder paths in Hive metastore?&lt;/P&gt;&lt;P&gt;2. PARTITION RENAME work,&amp;nbsp;if already a&amp;nbsp;partition with activeFlag='Y' exists? If yes, what will happen to existing partition?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 17:13:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/query-on-partitioning/m-p/366818#M239682</guid>
      <dc:creator>dearvenkat</dc:creator>
      <dc:date>2023-03-23T17:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: query on partitioning</title>
      <link>https://community.cloudera.com/t5/Support-Questions/query-on-partitioning/m-p/366826#M239686</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104190"&gt;@dearvenkat&lt;/a&gt;&amp;nbsp;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry I was thinking that you just want to change the value, but if you are using RENAME PARTITION sql command it will depend on which type of table you have&lt;/P&gt;&lt;P&gt;If it's EXTERNAL the data in HDFS will remain in the same old directory.&lt;/P&gt;&lt;P&gt;If your table is MANAGED it should change the directory name to the new one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please refer to this article:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Partition-rename-in-Hive-HDFS-path/td-p/193283" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/Partition-rename-in-Hive-HDFS-path/td-p/193283&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apache Hive SQL Reference:&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/hive/languagemanual+ddl#LanguageManualDDL-RenamePartition" target="_blank" rel="noopener"&gt;https://cwiki.apache.org/confluence/display/hive/languagemanual+ddl#LanguageManualDDL-RenamePartition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 22:31:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/query-on-partitioning/m-p/366826#M239686</guid>
      <dc:creator>Shmoo</dc:creator>
      <dc:date>2023-03-23T22:31:46Z</dc:date>
    </item>
  </channel>
</rss>

