<?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 Impala was not able to query hive table with column type date in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-was-not-able-to-query-hive-table-with-column-type/m-p/39829#M25372</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have successfully created a table in Hive by ingesting a CSV file, but I cannot query this table with Impala which does not recognize the column with the data type "date":&lt;/P&gt;&lt;PRE&gt;Create table elections (
  id string,
  name string,
  dt date)
    row format delimited 
    fields terminated by ','
    stored as textfile;

LOAD DATA LOCAL INPATH "/home/cloudera/datasets/vox/elections.csv" overwrite INTO TABLE elections ;&lt;/PRE&gt;&lt;P&gt;I was able to successfully query that table in hive. Below the result of describe within each query editor:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HIVE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="deschive.png" style="width: 600px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/1678i05AA11A840143D55/image-size/large?v=v2&amp;amp;px=999" role="button" title="deschive.png" alt="deschive.png" /&gt;&lt;/span&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IMPALA&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="descimpala.png" style="width: 600px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/1679iCF171BA9513235F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="descimpala.png" alt="descimpala.png" /&gt;&lt;/span&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you be able to explain that difference ? I'm using Hive version 1.1.0 and Impala version 2.3.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 10:14:14 GMT</pubDate>
    <dc:creator>pgb</dc:creator>
    <dc:date>2022-09-16T10:14:14Z</dc:date>
    <item>
      <title>Impala was not able to query hive table with column type date</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-was-not-able-to-query-hive-table-with-column-type/m-p/39829#M25372</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have successfully created a table in Hive by ingesting a CSV file, but I cannot query this table with Impala which does not recognize the column with the data type "date":&lt;/P&gt;&lt;PRE&gt;Create table elections (
  id string,
  name string,
  dt date)
    row format delimited 
    fields terminated by ','
    stored as textfile;

LOAD DATA LOCAL INPATH "/home/cloudera/datasets/vox/elections.csv" overwrite INTO TABLE elections ;&lt;/PRE&gt;&lt;P&gt;I was able to successfully query that table in hive. Below the result of describe within each query editor:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HIVE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="deschive.png" style="width: 600px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/1678i05AA11A840143D55/image-size/large?v=v2&amp;amp;px=999" role="button" title="deschive.png" alt="deschive.png" /&gt;&lt;/span&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IMPALA&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="descimpala.png" style="width: 600px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/1679iCF171BA9513235F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="descimpala.png" alt="descimpala.png" /&gt;&lt;/span&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you be able to explain that difference ? I'm using Hive version 1.1.0 and Impala version 2.3.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:14:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-was-not-able-to-query-hive-table-with-column-type/m-p/39829#M25372</guid>
      <dc:creator>pgb</dc:creator>
      <dc:date>2022-09-16T10:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Impala was not able to query hive table with column type date</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-was-not-able-to-query-hive-table-with-column-type/m-p/40237#M25373</link>
      <description>&lt;P&gt;Not sure this is the latest documentation for Impala but the Hive "Date" type is not supported in Impala.&lt;/P&gt;&lt;P&gt;Use TIMESTAMP instead for example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check "Impala supported data types" in google. (Sorry I can't paste the url I don't know why).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2016 14:53:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-was-not-able-to-query-hive-table-with-column-type/m-p/40237#M25373</guid>
      <dc:creator>mathieu.d</dc:creator>
      <dc:date>2016-04-27T14:53:29Z</dc:date>
    </item>
  </channel>
</rss>

