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 845DE10AA2 for ; Fri, 19 Dec 2014 19:26:14 +0000 (UTC) Received: (qmail 7613 invoked by uid 500); 19 Dec 2014 19:26:14 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 7546 invoked by uid 500); 19 Dec 2014 19:26:14 -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 7534 invoked by uid 500); 19 Dec 2014 19:26:14 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 7528 invoked by uid 99); 19 Dec 2014 19:26:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Dec 2014 19:26:14 +0000 Date: Fri, 19 Dec 2014 19:26:14 +0000 (UTC) From: "Thejas M Nair (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-9004) Reset doesn't work for the default empty value entry 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-9004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14253857#comment-14253857 ] Thejas M Nair commented on HIVE-9004: ------------------------------------- Yes, I agree this is not very intrusive behavior change, not many users are likely to see issues because of this. I think documenting it should be OK. However, some comments regarding the patch - 1. I think we should include a unit test for this. 2. I don't think the change would work. The properties object returned is a copy, it won't update the HiveConf - In HiveConf.java - {code} public Properties getAllProperties() { return getProperties(this); } private static Properties getProperties(Configuration conf) { Iterator> iter = conf.iterator(); Properties p = new Properties(); while (iter.hasNext()) { Map.Entry e = iter.next(); p.setProperty(e.getKey(), e.getValue()); } return p; } {code} > Reset doesn't work for the default empty value entry > ---------------------------------------------------- > > Key: HIVE-9004 > URL: https://issues.apache.org/jira/browse/HIVE-9004 > Project: Hive > Issue Type: Bug > Components: Configuration > Reporter: Cheng Hao > Assignee: Cheng Hao > Fix For: spark-branch, 0.15.0, 0.14.1 > > Attachments: HIVE-9004.patch > > > To illustrate that: > In hive cli: > hive> set hive.table.parameters.default; > hive.table.parameters.default is undefined > hive> set hive.table.parameters.default=key1=value1; > hive> reset; > hive> set hive.table.parameters.default; > hive.table.parameters.default=key1=value1 > I think we expect the last output as "hive.table.parameters.default is undefined" -- This message was sent by Atlassian JIRA (v6.3.4#6332)