Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CB343CA4D for ; Thu, 20 Jun 2013 15:13:03 +0000 (UTC) Received: (qmail 31651 invoked by uid 500); 20 Jun 2013 15:13:02 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 31501 invoked by uid 500); 20 Jun 2013 15:13:02 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 31474 invoked by uid 99); 20 Jun 2013 15:13:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jun 2013 15:13:01 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pandeesh@me.com designates 17.172.220.238 as permitted sender) Received: from [17.172.220.238] (HELO st11p02mm-asmtp003.mac.com) (17.172.220.238) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jun 2013 15:12:54 +0000 Received: from [192.168.0.6] (unknown [117.217.188.187]) by st11p02mm-asmtp003.mac.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Jan 3 2012)) with ESMTPSA id <0MOP008X768NRV40@st11p02mm-asmtp003.mac.com>; Thu, 20 Jun 2013 15:12:30 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8794,1.0.431,0.0.0000 definitions=2013-06-20_06:2013-06-20,2013-06-20,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1305010000 definitions=main-1306200112 References: MIME-version: 1.0 (1.0) In-reply-to: Content-type: text/plain; charset=us-ascii Content-transfer-encoding: quoted-printable Message-id: Cc: "dev@hive.apache.org" , "user@hive.apache.org" X-Mailer: iPad Mail (10B329) From: pandeeswaran bhoopathy Subject: Re: Storing data into hive table having columns from multiple files Date: Thu, 20 Jun 2013 20:40:21 +0530 To: "dev@hive.apache.org" X-Virus-Checked: Checked by ClamAV on apache.org Do you mean the merge operation? Sent from my iPad On 20-Jun-2013, at 2:51 PM, varaprasad.bheri@polarisFT.com wrote: > Hi All, >=20 > I have a query on a scenario which is below: >=20 > There are 2 files "file1", "file2". And a hive table "test" which is creat= ed with 15 columns with "," delimiter. > "file1" contains 25 columns and "file2" contains 15 columns having seperat= or as ",": >=20 > But, out of 25 columns, 10 columns of data from file1 are inserted to hive= table "test" > and out of 15 columns, 5 columns of data from file2 are inserted to the sa= me hive table "test" > (lets forget about the remaining 15 columns from file1 and 10 columns from= file2) >=20 > First, "file1" is processed and then "file2" is processed. > When "file1" is processed, 10 columns gets inserted into "test" table for a= row. > When "file2" is processed, 5 columns have to be inserted into "test" table= of the same row. >=20 > Could you please help me on how to insert the 5 columns of file2 to the sa= me row in "test" table? > (which has 10 columns of data inserted from file1 for that row) >=20 >=20 > Thanks & Regards, > Varaprasada Reddy >=20 >=20 > This e-Mail may contain proprietary and confidential information and is se= nt for the intended recipient(s) only. If by an addressing or transmission e= rror this mail has been misdirected to you, you are requested to delete this= mail immediately. You are also hereby notified that any use, any form of re= production, dissemination, copying, disclosure, modification, distribution a= nd/or publication of this e-mail message, contents or its attachment other t= han by its intended recipient/s is strictly prohibited. >=20 > Visit us at http://www.polarisFT.com