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 4C6F9106DA for ; Fri, 6 Dec 2013 23:53:38 +0000 (UTC) Received: (qmail 67723 invoked by uid 500); 6 Dec 2013 23:53:36 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 67657 invoked by uid 500); 6 Dec 2013 23:53: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 67580 invoked by uid 500); 6 Dec 2013 23:53:36 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 67564 invoked by uid 99); 6 Dec 2013 23:53:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Dec 2013 23:53:36 +0000 Date: Fri, 6 Dec 2013 23:53:36 +0000 (UTC) From: "Sergey Shelukhin (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-5951) improve performance of adding partitions from client 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-5951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13841912#comment-13841912 ] Sergey Shelukhin commented on HIVE-5951: ---------------------------------------- I am looking at neg tests, forgot to run those > improve performance of adding partitions from client > ---------------------------------------------------- > > Key: HIVE-5951 > URL: https://issues.apache.org/jira/browse/HIVE-5951 > Project: Hive > Issue Type: Improvement > Reporter: Sergey Shelukhin > Assignee: Sergey Shelukhin > Attachments: HIVE-5951.01.patch, HIVE-5951.nogen.patch, HIVE-5951.nogen.patch, HIVE-5951.patch > > > Adding partitions to metastore is currently very inefficient. There are small things like, for !ifNotExists case, DDLSemanticAnalyzer gets the full partition object for every spec (which is a network call to metastore), and then discards it instantly; there's also general problem that too much processing is done on client side. DDLSA should analyze the query and make one call to metastore (or maybe a set of batched calls if there are too many partitions in the command), metastore should then figure out stuff and insert in batch. -- This message was sent by Atlassian JIRA (v6.1#6144)