- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Impala was not able to query hive table with column type date
- Labels:
-
Apache Hive
-
Apache Impala
Created on ‎04-16-2016 07:14 AM - edited ‎09-16-2022 03:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
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":
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 ;
I was able to successfully query that table in hive. Below the result of describe within each query editor:
HIVE
IMPALA
Would you be able to explain that difference ? I'm using Hive version 1.1.0 and Impala version 2.3.0
Thanks
Created ‎04-27-2016 07:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not sure this is the latest documentation for Impala but the Hive "Date" type is not supported in Impala.
Use TIMESTAMP instead for example.
Check "Impala supported data types" in google. (Sorry I can't paste the url I don't know why).
Created ‎04-27-2016 07:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not sure this is the latest documentation for Impala but the Hive "Date" type is not supported in Impala.
Use TIMESTAMP instead for example.
Check "Impala supported data types" in google. (Sorry I can't paste the url I don't know why).
