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 670E4102E7 for ; Thu, 24 Oct 2013 20:18:49 +0000 (UTC) Received: (qmail 86564 invoked by uid 500); 24 Oct 2013 20:18:23 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 86473 invoked by uid 500); 24 Oct 2013 20:18:18 -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 86413 invoked by uid 500); 24 Oct 2013 20:18:11 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 86376 invoked by uid 99); 24 Oct 2013 20:18:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Oct 2013 20:18:06 +0000 Date: Thu, 24 Oct 2013 20:18:05 +0000 (UTC) From: "Ashutosh Chauhan (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-3959) Update Partition Statistics in Metastore Layer 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-3959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ashutosh Chauhan updated HIVE-3959: ----------------------------------- Status: Patch Available (was: Open) > Update Partition Statistics in Metastore Layer > ---------------------------------------------- > > Key: HIVE-3959 > URL: https://issues.apache.org/jira/browse/HIVE-3959 > Project: Hive > Issue Type: Improvement > Components: Metastore, Statistics > Reporter: Bhushan Mandhani > Assignee: Ashutosh Chauhan > Priority: Minor > Attachments: HIVE-3959.1.patch, HIVE-3959.2.patch, HIVE-3959.3.patch, HIVE-3959.4.patch, HIVE-3959.patch.1, HIVE-3959.patch.11.txt, HIVE-3959.patch.12.txt, HIVE-3959.patch.2 > > > When partitions are created using queries ("insert overwrite" and "insert into") then the StatsTask updates all stats. However, when partitions are added directly through metadata-only partitions (either CLI or direct calls to Thrift Metastore) no stats are populated even if hive.stats.reliable is set to true. This puts us in a situation where we can't decide if stats are truly reliable or not. > We propose that the "fast stats" (numFiles and totalSize) which don't require a scan of the data should always be populated and be completely reliable. For now we are still excluding rowCount and rawDataSize because that will make these operations very expensive. Currently they are quick metadata-only ops. -- This message was sent by Atlassian JIRA (v6.1#6144)