<?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: Is &amp;quot;Partitioned By&amp;quot; compatible within the context of a CTAS type query?  (Using Map Re in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Is-quot-Partitioned-By-quot-compatible-within-the-context-of/m-p/89864#M4115</link>
    <description>Thank you very much, Manpreet.&lt;BR /&gt;&lt;BR /&gt;Jim</description>
    <pubDate>Thu, 02 May 2019 19:03:55 GMT</pubDate>
    <dc:creator>JimBarbour</dc:creator>
    <dc:date>2019-05-02T19:03:55Z</dc:date>
    <item>
      <title>Is "Partitioned By" compatible within the context of a CTAS type query?  (Using Map Reduce or Spark)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-quot-Partitioned-By-quot-compatible-within-the-context-of/m-p/89818#M4113</link>
      <description>&lt;P&gt;I can't find a definitive answer (yet) to this question:&lt;BR /&gt;Is "Partitioned By" compatible within the context of a CTAS type query?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a partitioned table using a CTAS type query using the Map Reduce engine.&amp;nbsp; I could use Spark but typically use Map Reduce because of the volume of data.&amp;nbsp; I do not have Impala available to me.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This documentation appears to suggest that I can (&lt;A href="https://www.cloudera.com/documentation/enterprise/5-8-x/topics/impala_create_table.html" target="_blank" rel="noopener"&gt;https://www.cloudera.com/documentation/enterprise/5-8-x/topics/impala_create_table.html&lt;/A&gt;), but I can't get it to work (the documentation may pertain only to Impala which is not installed in my shop).&amp;nbsp; See specific documentation snippet, below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running CDH 5.10.&amp;nbsp; See additional details (far) below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p"&gt;&lt;STRONG&gt;CREATE TABLE AS SELECT:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;CREATE [EXTERNAL] TABLE [IF NOT EXISTS] db_name.]table_name
  &lt;SPAN class="ph props_rev_2.5.0"&gt;[PARTITIONED BY (col_name[, ...])]&lt;/SPAN&gt;
  [COMMENT 'table_comment']
  [WITH SERDEPROPERTIES ('key1'='value1', 'key2'='value2', ...)]
  [
   [ROW FORMAT row_format] &lt;SPAN class="ph props_rev_CDH-41501"&gt;[STORED AS ctas_file_format]&lt;/SPAN&gt;
  ]
  [LOCATION 'hdfs_path']
  [TBLPROPERTIES ('key1'='value1', 'key2'='value2', ...)]
&lt;SPAN class="ph props_rev_1.4.0"&gt;  [CACHED IN 'pool_name'&lt;/SPAN&gt; &lt;SPAN class="ph props_rev_2.2.0"&gt;[WITH REPLICATION = integer]&lt;/SPAN&gt; | UNCACHED]
AS
  select_statement&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My environment:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Hadoop 2.6.0-cdh5.10.2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Subversion &lt;A href="http://github.com/cloudera/hadoop" target="_blank" rel="noopener"&gt;http://github.com/cloudera/hadoop&lt;/A&gt; -r d11d609073f120d283c34b9e95725c83c7468000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Compiled by jenkins on 2017-06-27T04:03Z&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Compiled with protoc 2.5.0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;From source with checksum e1845786b58ee858e84010f49db44e&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;This command was run using /opt/cloudera/parcels/CDH-5.10.2-1.cdh5.10.2.p3257.3508/jars/hadoop-common-2.6.0-cdh5.10.2.jar&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:21:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-quot-Partitioned-By-quot-compatible-within-the-context-of/m-p/89818#M4113</guid>
      <dc:creator>JimBarbour</dc:creator>
      <dc:date>2022-09-16T14:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is "Partitioned By" compatible within the context of a CTAS type query?  (Using Map Re</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-quot-Partitioned-By-quot-compatible-within-the-context-of/m-p/89856#M4114</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/33757" target="_self"&gt;&lt;SPAN class=""&gt;JimBarbour&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand that you are using CDH 5.10 which comes with hive version&amp;nbsp;&lt;SPAN&gt;1.1 .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently this version of hive does not support CTAS with partitioned by clause, the functunality is address in hive version&amp;nbsp;&lt;A title="4.0.0 " href="https://issues.apache.org/jira/issues/?jql=project+%3D+HIVE+AND+fixVersion+%3D+4.0.0" target="_blank" rel="noopener"&gt;4.0.0&lt;/A&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;A title="3.2.0 " href="https://issues.apache.org/jira/issues/?jql=project+%3D+HIVE+AND+fixVersion+%3D+3.2.0" target="_blank" rel="noopener"&gt;3.2.0&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the jira for the same&amp;nbsp;&lt;A href="https://issues.apache.org/jira/browse/HIVE-20241" target="_blank" rel="noopener"&gt;https://issues.apache.org/jira/browse/HIVE-20241&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Manpreet Singh&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 18:28:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-quot-Partitioned-By-quot-compatible-within-the-context-of/m-p/89856#M4114</guid>
      <dc:creator>saini saab</dc:creator>
      <dc:date>2019-05-02T18:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is "Partitioned By" compatible within the context of a CTAS type query?  (Using Map Re</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-quot-Partitioned-By-quot-compatible-within-the-context-of/m-p/89864#M4115</link>
      <description>Thank you very much, Manpreet.&lt;BR /&gt;&lt;BR /&gt;Jim</description>
      <pubDate>Thu, 02 May 2019 19:03:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-quot-Partitioned-By-quot-compatible-within-the-context-of/m-p/89864#M4115</guid>
      <dc:creator>JimBarbour</dc:creator>
      <dc:date>2019-05-02T19:03:55Z</dc:date>
    </item>
  </channel>
</rss>

