<?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 CTAS throws IllegalArgumentException - Unknown primitive type VOID in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CTAS-throws-IllegalArgumentException-Unknown-primitive/m-p/183671#M58755</link>
    <description>&lt;P&gt;No, HIVE-11217 was about improving the error message. "CAST(NULL AS bigint)" should work irrespective of this fix. Can you share your query?&lt;/P&gt;</description>
    <pubDate>Mon, 03 Apr 2017 04:23:00 GMT</pubDate>
    <dc:creator>deepesh1</dc:creator>
    <dc:date>2017-04-03T04:23:00Z</dc:date>
    <item>
      <title>Hive CTAS throws IllegalArgumentException - Unknown primitive type VOID</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CTAS-throws-IllegalArgumentException-Unknown-primitive/m-p/183667#M58751</link>
      <description>&lt;P&gt;I am using HDP-2.4.0.7 and ORC is the default format for Hive.&lt;/P&gt;&lt;P&gt;One of my CTAS Hive query to create a table, fails with the following error:&lt;/P&gt;&lt;PRE&gt;return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.IllegalArgumentException: Unknown primitive type VOID&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Apr 2017 08:13:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CTAS-throws-IllegalArgumentException-Unknown-primitive/m-p/183667#M58751</guid>
      <dc:creator>dineshc</dc:creator>
      <dc:date>2017-04-01T08:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Hive CTAS throws IllegalArgumentException - Unknown primitive type VOID</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CTAS-throws-IllegalArgumentException-Unknown-primitive/m-p/183668#M58752</link>
      <description>&lt;P&gt;Are you using NULL in the select clause, in that case you might be encountering &lt;A target="_blank" href="https://issues.apache.org/jira/browse/HIVE-11217"&gt;HIVE-11217&lt;/A&gt;. As per the JIRA there is no fix but the error message is improved with something like:&lt;/P&gt;&lt;PRE&gt;CREATE-TABLE-AS-SELECT creates a VOID type, please use CAST to specify the type&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Apr 2017 09:35:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CTAS-throws-IllegalArgumentException-Unknown-primitive/m-p/183668#M58752</guid>
      <dc:creator>deepesh1</dc:creator>
      <dc:date>2017-04-01T09:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Hive CTAS throws IllegalArgumentException - Unknown primitive type VOID</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CTAS-throws-IllegalArgumentException-Unknown-primitive/m-p/183669#M58753</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/222/deepesh.html" nodeid="222"&gt;@Deepesh&lt;/A&gt; - Yes, I am using CAST to specify the type. In my case the select has - "CAST(NULL AS bigint)".&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2017 10:32:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CTAS-throws-IllegalArgumentException-Unknown-primitive/m-p/183669#M58753</guid>
      <dc:creator>dineshc</dc:creator>
      <dc:date>2017-04-01T10:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hive CTAS throws IllegalArgumentException - Unknown primitive type VOID</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CTAS-throws-IllegalArgumentException-Unknown-primitive/m-p/183670#M58754</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/222/deepesh.html" nodeid="222"&gt;@Deepesh&lt;/A&gt; - I checked the Hive-11217 JIRA you posted here. It appears the fix was applied to Hive versions 1.3.0 and 2.0. Does that mean that people using Hive Versions lowers than 1.3.0 will face this issue even if they are using CAST ?&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2017 10:44:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CTAS-throws-IllegalArgumentException-Unknown-primitive/m-p/183670#M58754</guid>
      <dc:creator>dineshc</dc:creator>
      <dc:date>2017-04-01T10:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hive CTAS throws IllegalArgumentException - Unknown primitive type VOID</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CTAS-throws-IllegalArgumentException-Unknown-primitive/m-p/183671#M58755</link>
      <description>&lt;P&gt;No, HIVE-11217 was about improving the error message. "CAST(NULL AS bigint)" should work irrespective of this fix. Can you share your query?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 04:23:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CTAS-throws-IllegalArgumentException-Unknown-primitive/m-p/183671#M58755</guid>
      <dc:creator>deepesh1</dc:creator>
      <dc:date>2017-04-03T04:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hive CTAS throws IllegalArgumentException - Unknown primitive type VOID</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CTAS-throws-IllegalArgumentException-Unknown-primitive/m-p/183672#M58756</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/13511/dineshchitlangia.html" nodeid="13511"&gt;@Dinesh Chitlangia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes as siad by &lt;A rel="user" href="https://community.cloudera.com/users/222/deepesh.html" nodeid="222"&gt;@Deepesh&lt;/A&gt; it should work. But if you query is something like this create table as select col1,col2 from mytable; and if your col2 contains 100% null in mytable then the table will be created successfully with void as datatype. However you will not be allowed to append anymore data with valid values into it. &lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 09:28:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CTAS-throws-IllegalArgumentException-Unknown-primitive/m-p/183672#M58756</guid>
      <dc:creator>balavignesh_nag</dc:creator>
      <dc:date>2017-04-03T09:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hive CTAS throws IllegalArgumentException - Unknown primitive type VOID</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CTAS-throws-IllegalArgumentException-Unknown-primitive/m-p/183673#M58757</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/222/deepesh.html" nodeid="222"&gt;@Deepesh&lt;/A&gt;. Turns out there was a different version of code in different clusters. So, when I used CAST it worked fine.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 01:44:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CTAS-throws-IllegalArgumentException-Unknown-primitive/m-p/183673#M58757</guid>
      <dc:creator>dineshc</dc:creator>
      <dc:date>2017-04-04T01:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Hive CTAS throws IllegalArgumentException - Unknown primitive type VOID</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CTAS-throws-IllegalArgumentException-Unknown-primitive/m-p/183674#M58758</link>
      <description>&lt;P&gt;Thank you. Upvoted your answer.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 01:44:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CTAS-throws-IllegalArgumentException-Unknown-primitive/m-p/183674#M58758</guid>
      <dc:creator>dineshc</dc:creator>
      <dc:date>2017-04-04T01:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Hive CTAS throws IllegalArgumentException - Unknown primitive type VOID</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CTAS-throws-IllegalArgumentException-Unknown-primitive/m-p/183675#M58759</link>
      <description>&lt;P&gt;If you have used CAST then it should not throw any exception and
should work absolutely fine.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 01:47:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-CTAS-throws-IllegalArgumentException-Unknown-primitive/m-p/183675#M58759</guid>
      <dc:creator>sreeviswa_athic</dc:creator>
      <dc:date>2017-04-04T01:47:05Z</dc:date>
    </item>
  </channel>
</rss>

