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 9264817FFE for ; Mon, 23 Mar 2015 15:28:12 +0000 (UTC) Received: (qmail 880 invoked by uid 500); 23 Mar 2015 15:28:10 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 813 invoked by uid 500); 23 Mar 2015 15:28:10 -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 803 invoked by uid 99); 23 Mar 2015 15:28:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Mar 2015 15:28:10 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_IMAGE_ONLY_24,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of alanfgates@gmail.com designates 209.85.220.45 as permitted sender) Received: from [209.85.220.45] (HELO mail-pa0-f45.google.com) (209.85.220.45) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Mar 2015 15:27:38 +0000 Received: by pabxg6 with SMTP id xg6so182041294pab.0 for ; Mon, 23 Mar 2015 08:27:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=xW4Reh/Xq49IvcaiDHcMiRcLmk7Xd1bQP3s1SWH6fyE=; b=eA+N64SRwQI55fSJ0EdAFTW1JuuHDW4m6soee1HumlspreALVkwNRiNnm9/NHkyk5/ 5FNgHGUJAJHAoGO2p52kcFHsNC2s8teTC1huaMD9YmyDtoksogCqrr+j2x6m3RznVmuI xAkseyMkNS2GjdT8PANKWSgyw9cn9YkMU5cjOHf73yLcdLAK6bVg2vjjG1GT1cmk993a 3IeUlhZ1dQdsrIBKnVJb7qd/sKovozWrw4docOvgehtYfot5Z1nQyPf8aDZZTLEchXd+ ANI9TRumEznMwYYfg9hWXMG6B3eWQFLjG2FjzBt2HK8kYYaXVIjUQnsO6MOOZDMBomy1 r3LQ== X-Received: by 10.70.138.42 with SMTP id qn10mr123514275pdb.157.1427124455944; Mon, 23 Mar 2015 08:27:35 -0700 (PDT) Received: from Alan-Gatess-MacBook-Pro.local ([192.175.27.17]) by mx.google.com with ESMTPSA id ha5sm1377559pbb.34.2015.03.23.08.27.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 23 Mar 2015 08:27:35 -0700 (PDT) Message-ID: <551030E4.5050301@gmail.com> Date: Mon, 23 Mar 2015 08:27:32 -0700 From: Alan Gates User-Agent: Postbox 3.0.11 (Macintosh/20140602) MIME-Version: 1.0 To: user@hive.apache.org Subject: Re: Delete ORC partition References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------080702090102080204010802" X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. --------------080702090102080204010802 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Are you getting an error or does the partition just not get deleted? If you get an error message can you share it? What version of Hive are you using? Alan. > Megha Garg > March 23, 2015 at 5:43 > Hi, > > I am new to hive. I have created one ORC table with partitioning where > my partition looks like below:- > > *date=2014-01-01 00%3A00%3A00.0* > *date=2014-01-02 00%3A00%3A00.0* > *date=2014-01-03 00%3A00%3A00.0* > > I want to delete my second partition (date=2014-01-02 00%3A00%3A00.0) > but i am not able to do so. I am using the below query:- > > * alter table my_tbl drop partition (date='2014-01-0200.00.00.0') ;* > > But it is not working. How can i delete it? --------------080702090102080204010802 Content-Type: multipart/related; boundary="------------030103010704080801050802" --------------030103010704080801050802 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit Are you getting an error or does the partition just not get deleted?  If you get an error message can you share it?  What version of Hive are you using?

Alan.

March 23, 2015 at 5:43
Hi,

I am new to hive. I have created one ORC table with partitioning where my partition looks like below:-

date=2014-01-01 00%3A00%3A00.0
date=2014-01-02 00%3A00%3A00.0
date=2014-01-03 00%3A00%3A00.0

I want to delete my second partition (date=2014-01-02 00%3A00%3A00.0) but i am not able to do so. I am using the below query:-

 alter table my_tbl drop  partition (date='2014-01-0200.00.00.0') ; 

But it is not working.  How can i delete it?
--------------030103010704080801050802 Content-Type: image/jpeg; x-apple-mail-type=stationery; name="compose-unknown-contact.jpg" Content-Transfer-Encoding: base64 Content-ID: Content-Disposition: inline; filename="compose-unknown-contact.jpg" /9j/4AAQSkZJRgABAQEARwBHAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEC AQEBAQEBAgICAgICAgICAgICAgICAgICAgICAgICAgICAgL/2wBDAQEBAQEBAQICAgICAgIC AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgL/wAAR CAAZABkDAREAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAABgcICQr/xAA0EAABAwMCAgUK BwAAAAAAAAACAQMEBQYRABITIQcUMUF2CBUXIjI2N0JRtVRWkZOV0dL/xAAYAQEAAwEAAAAA AAAAAAAAAAADAAEEAv/EACQRAAICAAQGAwAAAAAAAAAAAAABAhEDMrHREyExM0FxgfDx/9oA DAMBAAIRAxEAPwDuEt+gW/ULet6oVC3rfqNQqFv0OfPn1GhUqfOmzZtKZlS5UqZMaNwzNwiJ VIl7eXLCaZIGwBl3TY8epPx2+jy2ZNPjvkwc9uhW8j7nCPhvOsQliYIeS7cvCpp8o50qwrC4 v3lsNSDbdmTEhvs2tahxpfV3WnmbbozJEw/gwdadbYExVRXKEKoSdvJcaOSqxE7/AAiX0gXx +a69/JSf9alIlste0VzaNpeFrcT9KKymotyiaZ0KRCnzacoE7Kjzn4gi2KqUh3jqDHDHv4mR UfruTWlMzlVUKIVNp9GguEJnAh0+IZjyAiisgyRDnu5azS8miKqjOTVkKqS/psG37fo1Fbab eg25b8eZPeFJBBJSjMG5HjMeyihnaauZwe4OGiju13GAcpOwBeN+U8/IkGbsiS8b7ryogmbz hbyc9REROfZhERO5ETShjPtvpGqTUyLErytS4siSwx5x2tRH4hPOI0DkjZtaJtFxuVEbIUUi yeNujlBUJGbJN6nM/Cyf2Hf60YgjvKA+NPSP4gT7axpcPtr51YWJnYn9dnAQWl722p4ot37y zqnlfp6FrqbwawG8/9k= --------------030103010704080801050802-- --------------080702090102080204010802--