From issues-return-187436-archive-asf-public=cust-asf.ponee.io@hive.apache.org Mon Apr 27 11:30:03 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id D9A31180637 for ; Mon, 27 Apr 2020 13:30:02 +0200 (CEST) Received: (qmail 36389 invoked by uid 500); 27 Apr 2020 11:30:02 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 36367 invoked by uid 99); 27 Apr 2020 11:30:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Apr 2020 11:30:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 8A559E2E13 for ; Mon, 27 Apr 2020 11:30:01 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 545597808A8 for ; Mon, 27 Apr 2020 11:30:00 +0000 (UTC) Date: Mon, 27 Apr 2020 11:30:00 +0000 (UTC) From: "Attila Magyar (Jira)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-23282) Reduce number of DB calls in ObjectStore::getPartitionsByExprInternal MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-23282?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Attila Magyar updated HIVE-23282: --------------------------------- Status: Patch Available (was: Open) > Reduce number of DB calls in ObjectStore::getPartitionsByExprInternal > --------------------------------------------------------------------- > > Key: HIVE-23282 > URL: https://issues.apache.org/jira/browse/HIVE-23282 > Project: Hive > Issue Type: Improvement > Components: Metastore > Reporter: Rajesh Balamohan > Assignee: Attila Magyar > Priority: Major > Attachments: HIVE-23282.1.patch, HIVE-23282.2.patch, image-2020-0= 4-23-14-07-06-077.png > > > ObjectStore::getPartitionsByExprInternal internally uses Table informatio= n for getting partitionKeys, table, catalog name. > =C2=A0 > For this, it ends up populating entire table data from DB (including skew= column, parameters, sort, bucket cols etc). This makes it a lot more expen= sive call. It would be good to check if MTable itself can be used instead o= f Table. > [https://github.com/apache/hive/blob/master/standalone-metastore/metastor= e-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java#L3= 327] > [https://github.com/apache/hive/blob/master/standalone-metastore/metastor= e-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java#L3= 669] > =C2=A0 > !image-2020-04-23-14-07-06-077.png|width=3D665,height=3D592! -- This message was sent by Atlassian Jira (v8.3.4#803005)