Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 47F0D17637 for ; Thu, 17 Sep 2015 09:26:46 +0000 (UTC) Received: (qmail 23456 invoked by uid 500); 17 Sep 2015 09:26:46 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 23430 invoked by uid 500); 17 Sep 2015 09:26:46 -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 23420 invoked by uid 99); 17 Sep 2015 09:26:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Sep 2015 09:26:46 +0000 Date: Thu, 17 Sep 2015 09:26:45 +0000 (UTC) From: "Pradeep Bhadani (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-9815) Metastore column"SERDE_PARAMS"."PARAM_VALUE" limited to 4000 bytes 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-9815?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pradeep Bhadani updated HIVE-9815: ---------------------------------- Summary: Metastore column"SERDE_PARAMS"."PARAM_VALUE" limited to 4000 bytes (was: Metastote column"SERDE_PARAMS"."PARAM_VALUE" limited to 4000 bytes) > Metastore column"SERDE_PARAMS"."PARAM_VALUE" limited to 4000 bytes > ------------------------------------------------------------------- > > Key: HIVE-9815 > URL: https://issues.apache.org/jira/browse/HIVE-9815 > Project: Hive > Issue Type: Bug > Components: Metastore > Affects Versions: 0.14.0 > Reporter: Naveen Gangam > Assignee: Naveen Gangam > Priority: Critical > Attachments: Hv2.txt > > > Currently, in the hive metastore schema, the length of the column SERDE_PARAMS.PARAM_VALUE is set to 4000 bytes. This is not enough for users that have a key with a value larger than 4000 bytes. Say something like hbase.columns.mapping. > I am not a database historian but appears that this limitation may have been put in place because Oracle's varchar2 was restricted to 4k bytes for a long time until recently. > According to the following documentation, even today Oracle DB's varchar2 only supports a max size of 4000 unless a configuration parameter MAX_STRING_SIZE is set to EXTENDED. > http://docs.oracle.com/database/121/SQLRF/sql_elements001.htm#SQLRF55623 > {code} > MAX_STRING_SIZE=EXTENDED > {code} > Postgres supports a max of 1GB for character datatype according to http://www.postgresql.org/docs/8.3/static/datatype-character.html > MySQL can support upto 65535 bytes for the entire row. So long as the PARAM_KEY value + PARAM_VALUE is less than 65535, we should be good. > http://dev.mysql.com/doc/refman/5.0/en/char.html > SQL Server's varchar max length is 8000 and can go beyond using "varchar(max)". > http://dev.mysql.com/doc/refman/5.0/en/char.html > Derby's varchar can be upto 32672 bytes. > https://db.apache.org/derby/docs/10.7/ref/rrefsqlj41207.html -- This message was sent by Atlassian JIRA (v6.3.4#6332)