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 B5DF7107E8 for ; Tue, 10 Feb 2015 00:12:43 +0000 (UTC) Received: (qmail 13770 invoked by uid 500); 10 Feb 2015 00:12:36 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 13692 invoked by uid 500); 10 Feb 2015 00:12:36 -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 13438 invoked by uid 500); 10 Feb 2015 00:12:36 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 13434 invoked by uid 99); 10 Feb 2015 00:12:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Feb 2015 00:12:36 +0000 Date: Tue, 10 Feb 2015 00:12:36 +0000 (UTC) From: "Mithun Radhakrishnan (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-9588) Reimplement HCatClientHMSImpl.dropPartitions() with HMSC.dropPartitions() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-9588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mithun Radhakrishnan updated HIVE-9588: --------------------------------------- Attachment: HIVE-9588.2.patch Refactored. Moved the new {{HiveMetaStoreClient.dropPartitions()}} to a separate JIRA. > Reimplement HCatClientHMSImpl.dropPartitions() with HMSC.dropPartitions() > ------------------------------------------------------------------------- > > Key: HIVE-9588 > URL: https://issues.apache.org/jira/browse/HIVE-9588 > Project: Hive > Issue Type: Bug > Components: HCatalog, Metastore, Thrift API > Affects Versions: 0.14.0 > Reporter: Mithun Radhakrishnan > Assignee: Mithun Radhakrishnan > Attachments: HIVE-9588.1.patch, HIVE-9588.2.patch > > > {{HCatClientHMSImpl.dropPartitions()}} currently has an embarrassingly inefficient implementation. The partial partition-spec is converted into a filter-string. The partitions are fetched from the server, and then dropped one by one. > Here's a reimplementation that uses the {{ExprNode}}-based {{HiveMetaStoreClient.dropPartitions()}}. It cuts out the excessive back-and-forth between the HMS and the client-side. It also reduces the memory footprint (from loading all the partitions that are to be dropped). -- This message was sent by Atlassian JIRA (v6.3.4#6332)