Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AB834200B3B for ; Mon, 11 Jul 2016 19:24:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AA4A4160A85; Mon, 11 Jul 2016 17:24:12 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 077FE160A5E for ; Mon, 11 Jul 2016 19:24:11 +0200 (CEST) Received: (qmail 54322 invoked by uid 500); 11 Jul 2016 17:24:11 -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 54297 invoked by uid 99); 11 Jul 2016 17:24:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jul 2016 17:24:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 1FADC2C027F for ; Mon, 11 Jul 2016 17:24:11 +0000 (UTC) Date: Mon, 11 Jul 2016 17:24:11 +0000 (UTC) From: "Naveen Gangam (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HIVE-14116) TBLPROPERTIES does not allow empty string values when Metastore is backed by Oracle database. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 11 Jul 2016 17:24:12 -0000 [ https://issues.apache.org/jira/browse/HIVE-14116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Naveen Gangam resolved HIVE-14116. ---------------------------------- Resolution: Duplicate Assignee: Naveen Gangam Fix Version/s: 1.0.0 This appears to have been resolved via HIVE-8485. Please set {{hive.metastore.orm.retrieveMapNullsAsEmptyStrings=true}} in the hive configuration to get around this issue. I have verified this with for the usecase in this jira. Closing this jira as duplicate. Please re-open if you have questions or concerns. Thanks > TBLPROPERTIES does not allow empty string values when Metastore is backed by Oracle database. > --------------------------------------------------------------------------------------------- > > Key: HIVE-14116 > URL: https://issues.apache.org/jira/browse/HIVE-14116 > Project: Hive > Issue Type: Bug > Components: Metastore > Affects Versions: 1.1.0 > Reporter: Tony Hill > Assignee: Naveen Gangam > Fix For: 1.0.0 > > > DDL commands like: > ALTER TABLE test SET TBLPROPERTIES('serialization.null.format'=''); > are silently ignored if the database backing Metastore is Oracle. This appears to be because Oracle treats an empty string as null. > Unlike when using MySql, no entry is created in the TBL_PARAMS table. > Steps to reproduce: > Create a table with a string field. > eg table mytable, field mystringfield. > ALTER TABLE mytable SET TBLPROPERTIES('serialization.null.format'=''); > DESCRIBE FORMATTED mytable; > with mysql backed Metastore, the entry will be displayed: > serialization.null.format > and an entry is created in the TBL_PARAMS for the parameter. > With Oracle backed metastore, it is not, and no entry is created in TBL_PARAMS. -- This message was sent by Atlassian JIRA (v6.3.4#6332)