Re: How to specify column list in hive insert into query?

2015-03-17 Thread Килеев Васли Славик
Thanks a lot for your answer, Alan! 17.03.2015, 18:20, "Alan Gates" : > This feature is not available in Hive 1.1.  It will be added in 1.2 (it has > already been checked into trunk).  In 1.1 and previous your values clause has > to contain a value for every column in the table in the proper ord

Re: How to specify column list in hive insert into query?

2015-03-17 Thread Alan Gates
This feature is not available in Hive 1.1. It will be added in 1.2 (it has already been checked into trunk). In 1.1 and previous your values clause has to contain a value for every column in the table in the proper order. So you would change your insert below to be insert into person values

How to specify column list in hive insert into query?

2015-03-17 Thread Килеев Васли Славик
I have just installed and configured Apache Hive version 1.1.0. Then I have created a table by quering this query: create table person (name1 string, surname1 string); And then I want to add one row by: insert into person (name1, surname1) values ("Alan", "Green"); And it cause an error: Err

Re: Strange error in Hive - Insert INTO

2013-08-19 Thread Jérôme Verdier
AM > To: "user@hive.apache.org" > Subject: Re: Strange error in Hive - Insert INTO > > Hi Jerome, > That's a grandiose sql statement you got there! :)I find that if you > break up those nested queries into simple CTAS (Create Table AS) statements

Re: Strange error in Hive - Insert INTO

2013-08-14 Thread Sanjay Subramanian
;user@hive.apache.org<mailto:user@hive.apache.org>" mailto:user@hive.apache.org>> Date: Wednesday, August 14, 2013 8:43 AM To: "user@hive.apache.org<mailto:user@hive.apache.org>" mailto:user@hive.apache.org>> Subject: Re: Strange error in Hive - Insert INT

Re: Strange error in Hive - Insert INTO

2013-08-14 Thread Stephen Sprague
Hi Jerome, That's a grandiose sql statement you got there! :)I find that if you break up those nested queries into simple CTAS (Create Table AS) statements and create a cascading effect of referring to the table in the previous step it makes debugging *so* much easier. In other SQL dialects li

Strange error in Hive - Insert INTO

2013-08-14 Thread Jérôme Verdier
Hi everybody, I faced a strange error in Hive today. I have launch a hive script to make some calculations, joins, union, etc... and then insert these results in over hive table. Everything is working fine (.hql is working, full ok, data are imported), but one field (CO_RGRP_PRODUITS) is very st

Re: Hive insert into RCFILE issue with timestamp columns

2013-03-06 Thread Sékine Coulibaly
Prasad, Isn't the fractional part of the TIMESTAMP type supposed to be optional, as per the error message : Failed with exception java.io.IOException:java.lang.IllegalArgumentException: Timestamp format must be -mm-dd hh:mm:ss[.f] Shall we understand 9 digits for fractional part are

Re: Hive insert into RCFILE issue with timestamp columns

2013-03-06 Thread Prasad Mujumdar
Dilip, Looks like you are using the data from the original schema for this new table that has single timestamp column. When I tried with just the timestamp from your data, the query runs fine. I guess the original issue you hit on the data that didn't have fraction part (1969-12-31 19:00:00, no

Re: Hive insert into RCFILE issue with timestamp columns

2013-03-05 Thread Mark Grover
Dileep, Can you use a more contemporary timestamp? Something after Jan 1, 1970 GMT, say Jan 1st, 2013? Let us know what you see. On Tue, Mar 5, 2013 at 2:56 PM, Dileep Kumar wrote: > --hdfs dfs -mkdir /hive/tpcds/date_ts > > create external table date_ts > ( > d_datetimest

Re: Hive insert into RCFILE issue with timestamp columns

2013-03-05 Thread Dileep Kumar
--hdfs dfs -mkdir /hive/tpcds/date_ts create external table date_ts ( d_datetimestamp ) row format delimited fields terminated by '|' location '/hive/tpcds/date_ts'; [cloudera@localhost tmp-work]$ hive -e "select * from date_ts" Logging initialized using configuration in f

Re: Hive insert into RCFILE issue with timestamp columns

2013-03-04 Thread Dileep Kumar
No. Here are the errors: Task with the most failures(4): - Task ID: task_1361599885844_0013_m_00 URL: http://localhost.localdomain:50030/taskdetails.jsp?jobid=job_1361599885844_0013&tipid=task_1361599885844_0013_m_00 - Diagnostic Messages for this Task: Error: java.lang.RuntimeE

Re: Hive insert into RCFILE issue with timestamp columns

2013-03-04 Thread Mark Grover
Hi Dilip, Are you able to run this query successfully? select d_date_sk, d_date_id, d_date, d_month_seq, d_week_seq, d_quarter_seq, d_dow, d_moy, d_dom, d_qoy, d_fy_year, d_fy_quarter_seq, d_fy_week_seq, d_day_name, d_quarter_name, d_holiday, d_weekend, d_following_holiday, d_first_dom, d_last_dom

Re: Hive insert into

2012-07-05 Thread Mark Grover
apache.org Sent: Wednesday, July 4, 2012 1:35:48 AM Subject: Re: Hive insert into Hi Abhi When you say INSERT INTO in hive it needn't be a file append. In hive the data corresponding to a table/partition is in a directory, data is stored as one or more files within those. AFAIK when you

Re: Hive insert into

2012-07-03 Thread Bejoy KS
hdfs file append needn't come to picture here. Regards Bejoy KS Sent from handheld, please excuse typos. -Original Message- From: abhiTowson cal Date: Wed, 4 Jul 2012 00:40:03 To: Reply-To: user@hive.apache.org Subject: Re: Hive insert into hi youngwoo Thanks for your reply.Can y

Re: Hive insert into

2012-07-03 Thread abhiTowson cal
hi youngwoo Thanks for your reply.Can you justify your answer hdfs doesnot support append, so how hive does it? Regards Abhi On Tue, Jul 3, 2012 at 11:56 PM, 김영우 wrote: > Abhi, > > Hive supports INSERT INTO syntax but you should use Hive 0.8 or higher. See > https://cwiki.apache.org/confluenc

Re: Hive insert into

2012-07-03 Thread 김영우
Abhi, Hive supports INSERT INTO syntax but you should use Hive 0.8 or higher. See https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DML#LanguageManualDML-InsertingdataintoHiveTablesfromqueries - Youngwoo On Wed, Jul 4, 2012 at 11:19 AM, Abhishek wrote: > Hi all, > > Will hive sup

Hive insert into

2012-07-03 Thread Abhishek
Hi all, Will hive support INSERT INTO ? and It is nothing but, appending new data to the existing data.Can any one please tell me how does it happen and which version of hive supports this? Regards Abhi Sent from my iPhone