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 4E4FBD66B for ; Fri, 17 Aug 2012 23:40:39 +0000 (UTC) Received: (qmail 40296 invoked by uid 500); 17 Aug 2012 23:40:38 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 40251 invoked by uid 500); 17 Aug 2012 23:40:38 -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 40238 invoked by uid 500); 17 Aug 2012 23:40:38 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 40233 invoked by uid 99); 17 Aug 2012 23:40:38 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Aug 2012 23:40:38 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 0FF632C5AC5 for ; Fri, 17 Aug 2012 23:40:37 +0000 (UTC) Date: Sat, 18 Aug 2012 10:40:37 +1100 (NCT) From: "Kevin Wilfong (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <86811085.25709.1345246838066.JavaMail.jiratomcat@arcas> In-Reply-To: <1446535615.25561.1345244557950.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (HIVE-3396) hive.stats.reliable config causes FileSinkOperator to fail when writing empty file 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-3396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kevin Wilfong updated HIVE-3396: -------------------------------- Status: Patch Available (was: Open) > hive.stats.reliable config causes FileSinkOperator to fail when writing empty file > ---------------------------------------------------------------------------------- > > Key: HIVE-3396 > URL: https://issues.apache.org/jira/browse/HIVE-3396 > Project: Hive > Issue Type: Bug > Components: Statistics > Affects Versions: 0.10.0 > Reporter: Kevin Wilfong > Assignee: Kevin Wilfong > Attachments: HIVE-3396.1.patch.txt > > > With the configs hive.stats.reliable and hive.stats.autogather are set to true, and using either the HBase or JDBC Stats Publishers, if a FileSinkOperator does not receive any rows, and hence collects no stats, it will throw an exception. > Related, if hive.stats.reliable is set to false it will still log a warning which seems unnecessary. > Repro: > create table tmptable(key string, value string) partitioned by (part string); > set hive.stats.autogather=true; > set hive.stats.reliable=true; > insert overwrite table tmptable partition (part = '1') select * from src where key = 'no_such_value'; -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira