<?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 Hive 1.2.x - CTAS behavior when using CAST to specify type in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-1-2-x-CTAS-behavior-when-using-CAST-to-specify-type/m-p/183591#M58769</link>
    <description>&lt;P&gt;As per this JIRA &lt;A href="https://issues.apache.org/jira/browse/HIVE-11217"&gt;HIVE-11217&lt;/A&gt;, there was a bug in Hive where a CTAS statement having NULL in select clause throws IllegalArgumentException:Unknown primitive type VOID. &lt;/P&gt;&lt;P&gt;The bug was fixed and patched in version 1.3.0 and 2.0.0 as per the JIRA and the solution was to use CAST to specify a type when having NULL in select clause.&lt;/P&gt;&lt;P&gt;If I am using Hive 1.2.x and my CTAS select clause has "CAST(null as bigint)" will it still throw&lt;/P&gt;&lt;P&gt;IllegalArgumentException:Unknown primitive type VOID ?&lt;/P&gt;</description>
    <pubDate>Sat, 01 Apr 2017 11:21:09 GMT</pubDate>
    <dc:creator>dineshc</dc:creator>
    <dc:date>2017-04-01T11:21:09Z</dc:date>
    <item>
      <title>Hive 1.2.x - CTAS behavior when using CAST to specify type</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-1-2-x-CTAS-behavior-when-using-CAST-to-specify-type/m-p/183591#M58769</link>
      <description>&lt;P&gt;As per this JIRA &lt;A href="https://issues.apache.org/jira/browse/HIVE-11217"&gt;HIVE-11217&lt;/A&gt;, there was a bug in Hive where a CTAS statement having NULL in select clause throws IllegalArgumentException:Unknown primitive type VOID. &lt;/P&gt;&lt;P&gt;The bug was fixed and patched in version 1.3.0 and 2.0.0 as per the JIRA and the solution was to use CAST to specify a type when having NULL in select clause.&lt;/P&gt;&lt;P&gt;If I am using Hive 1.2.x and my CTAS select clause has "CAST(null as bigint)" will it still throw&lt;/P&gt;&lt;P&gt;IllegalArgumentException:Unknown primitive type VOID ?&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2017 11:21:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-1-2-x-CTAS-behavior-when-using-CAST-to-specify-type/m-p/183591#M58769</guid>
      <dc:creator>dineshc</dc:creator>
      <dc:date>2017-04-01T11:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Hive 1.2.x - CTAS behavior when using CAST to specify type</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-1-2-x-CTAS-behavior-when-using-CAST-to-specify-type/m-p/183592#M58770</link>
      <description>&lt;P&gt;Try using CAST, then it should not throw any exception and
should work fine&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 02:38:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-1-2-x-CTAS-behavior-when-using-CAST-to-specify-type/m-p/183592#M58770</guid>
      <dc:creator>sreeviswa_athic</dc:creator>
      <dc:date>2017-04-04T02:38:02Z</dc:date>
    </item>
  </channel>
</rss>

