<?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 Create table as select issue  Unsupported type 'null_type'  impala in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-table-as-select-issue-Unsupported-type-null-type/m-p/62655#M72521</link>
    <description>&lt;P&gt;Hi&amp;nbsp; i having a issue while creating table as select from an another table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CREATE TABLE &amp;lt;database&amp;gt;.table1 as&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;column1 ,&lt;/P&gt;&lt;P&gt;column 2,&lt;/P&gt;&lt;P&gt;NULL as column3&lt;/P&gt;&lt;P&gt;from&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;databse&amp;gt;.table2&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;it is throwing below err&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unsupported type 'null_type' in column 'column3' of table 'table2'&amp;nbsp;&lt;/P&gt;&lt;P&gt;CAUSED BY: TableLoadingException: Unsupported type 'null_type' in column 'column3' of table 'table2'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone help me here.&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 12:37:32 GMT</pubDate>
    <dc:creator>Davood</dc:creator>
    <dc:date>2022-09-16T12:37:32Z</dc:date>
    <item>
      <title>Create table as select issue  Unsupported type 'null_type'  impala</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-table-as-select-issue-Unsupported-type-null-type/m-p/62655#M72521</link>
      <description>&lt;P&gt;Hi&amp;nbsp; i having a issue while creating table as select from an another table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CREATE TABLE &amp;lt;database&amp;gt;.table1 as&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;column1 ,&lt;/P&gt;&lt;P&gt;column 2,&lt;/P&gt;&lt;P&gt;NULL as column3&lt;/P&gt;&lt;P&gt;from&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;databse&amp;gt;.table2&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;it is throwing below err&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unsupported type 'null_type' in column 'column3' of table 'table2'&amp;nbsp;&lt;/P&gt;&lt;P&gt;CAUSED BY: TableLoadingException: Unsupported type 'null_type' in column 'column3' of table 'table2'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone help me here.&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:37:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-table-as-select-issue-Unsupported-type-null-type/m-p/62655#M72521</guid>
      <dc:creator>Davood</dc:creator>
      <dc:date>2022-09-16T12:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create table as select issue  Unsupported type 'null_type'  impala</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-table-as-select-issue-Unsupported-type-null-type/m-p/62657#M72522</link>
      <description>&lt;P&gt;Hi Davood,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Impala needs a column type for column3 and NULL does not allow the planner to infer the type.&amp;nbsp;Using a cast to specify the type will work: &lt;FONT face="andale mono,times"&gt;create table v as select i, cast(null as int) as j from t;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers, Lars&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 04:26:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-table-as-select-issue-Unsupported-type-null-type/m-p/62657#M72522</guid>
      <dc:creator>Lars Volker</dc:creator>
      <dc:date>2017-12-11T04:26:18Z</dc:date>
    </item>
  </channel>
</rss>

