Return-Path: X-Original-To: apmail-hive-user-archive@www.apache.org Delivered-To: apmail-hive-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EDA75E750 for ; Wed, 13 Feb 2013 09:48:38 +0000 (UTC) Received: (qmail 89392 invoked by uid 500); 13 Feb 2013 09:48:37 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 89340 invoked by uid 500); 13 Feb 2013 09:48:37 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 89313 invoked by uid 99); 13 Feb 2013 09:48:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2013 09:48:36 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of wget.null@gmail.com designates 209.85.215.176 as permitted sender) Received: from [209.85.215.176] (HELO mail-ea0-f176.google.com) (209.85.215.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2013 09:48:28 +0000 Received: by mail-ea0-f176.google.com with SMTP id a13so433822eaa.21 for ; Wed, 13 Feb 2013 01:48:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=SdpUnj79MNoRZfSmYAXIrocIgmoRi/1UloB+WDn0wTc=; b=fD4BU7D4LVdy0wXTu5ZVMxnjPsXHwV2pyhqB4uxtGhEqAo6LqQu1qys7JHfy4rnqYs PttBVQavll0+wye0Cpkmhz9ETMJh5jpmWwBDRmTxDNz3l/T3vWYu6tdR0UGdo/0QCqeH eVy00hdzaAXCdFBL9UlhUABIOXex6spmg9Sxchc1JBo5Yje1JWv2AmodAv3uapwYe7U7 NCdYSjt2wc6U0UV6UDJf+EluJvA/7+oWI7axgoCitd315VP++MNCBfo0rnrsnc0NnzJc lOLMV4RQBOccRFOxiR60xMpoVOfEL4SKgi5wI9sbSovpbcZj7CDFZEQJDysbgmhrBnk8 PhfA== X-Received: by 10.14.211.65 with SMTP id v41mr3838728eeo.33.1360748888609; Wed, 13 Feb 2013 01:48:08 -0800 (PST) Received: from [192.168.200.51] (HSI-KBW-078-042-203-071.hsi3.kabel-badenwuerttemberg.de. [78.42.203.71]) by mx.google.com with ESMTPS id o3sm72091770eem.15.2013.02.13.01.48.07 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 13 Feb 2013 01:48:07 -0800 (PST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: Change timestamp format in hive From: Alexander Alten-Lorenz In-Reply-To: Date: Wed, 13 Feb 2013 10:48:06 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: user@hive.apache.org X-Mailer: Apple Mail (2.1499) X-Virus-Checked: Checked by ClamAV on apache.org May = https://cwiki.apache.org/Hive/languagemanual-udf.html#LanguageManualUDF-Da= teFunctions help you? - Alex On Feb 13, 2013, at 10:43 AM, Chunky Gupta = wrote: > Hi, >=20 > I have a log file which has timestamp in format "YYYY-MM-DD-HH:MM:SS". = But since the timestamp datatype format in hive is "YYYY-MM-DD = HH:MM:SS".=20 > I created a table with datatype of that column as TIMESTAMP. But when = I load the data it is throwing error. I think it is because of = difference in format.=20 >=20 > Is there any way to set the timestamp format while creating the table. = Or is there some other solution for this issue ? >=20 > Thanks, > Chunky. -- Alexander Alten-Lorenz http://mapredit.blogspot.com German Hadoop LinkedIn Group: http://goo.gl/N8pCF