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 9F68A1722A for ; Sat, 25 Oct 2014 21:45:34 +0000 (UTC) Received: (qmail 36741 invoked by uid 500); 25 Oct 2014 21:45:33 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 36663 invoked by uid 500); 25 Oct 2014 21:45:33 -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 36647 invoked by uid 500); 25 Oct 2014 21:45:33 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 36644 invoked by uid 99); 25 Oct 2014 21:45:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Oct 2014 21:45:33 +0000 Date: Sat, 25 Oct 2014 21:45:33 +0000 (UTC) From: "Alan Gates (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-8605) HIVE-5799 breaks backward compatibility for time values in config 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-8605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alan Gates updated HIVE-8605: ----------------------------- Attachment: HIVE-8605.patch > HIVE-5799 breaks backward compatibility for time values in config > ----------------------------------------------------------------- > > Key: HIVE-8605 > URL: https://issues.apache.org/jira/browse/HIVE-8605 > Project: Hive > Issue Type: Bug > Components: Configuration > Affects Versions: 0.14.0 > Reporter: Alan Gates > Assignee: Alan Gates > Priority: Blocker > Fix For: 0.14.0 > > Attachments: HIVE-8605.patch > > > It is legal for long values in the config file to have an L or for float values to have an f. For example, the default value for hive.compactor.check.interval was 300L. As part of HIVE-5799, many long values were converted to TimeUnit. Attempts to read these values now throw "java.lang.IllegalArgumentException: Invalid time unit l" > We need to change this to ignore the L or f, so that users existing config files don't break. I propose to do this by changing HiveConf.unitFor to detect the L or f and interpret it to mean the default time unit. -- This message was sent by Atlassian JIRA (v6.3.4#6332)