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 2FD5D180A9 for ; Wed, 11 Nov 2015 22:40:12 +0000 (UTC) Received: (qmail 47445 invoked by uid 500); 11 Nov 2015 22:40:11 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 47277 invoked by uid 500); 11 Nov 2015 22:40: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 47233 invoked by uid 99); 11 Nov 2015 22:40:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Nov 2015 22:40:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 194BC2C1F60 for ; Wed, 11 Nov 2015 22:40:11 +0000 (UTC) Date: Wed, 11 Nov 2015 22:40:11 +0000 (UTC) From: "Sergey Shelukhin (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Reopened] (HIVE-12385) schematool failed on MySQL 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-12385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Shelukhin reopened HIVE-12385: ------------------------------------- Script does need to be modified > schematool failed on MySQL > -------------------------- > > Key: HIVE-12385 > URL: https://issues.apache.org/jira/browse/HIVE-12385 > Project: Hive > Issue Type: Bug > Affects Versions: 2.00 > Environment: MySQL > Reporter: Takahiko Saito > Assignee: Sergey Shelukhin > Fix For: 2.00 > > > Run schematool and got the following error: > {noformat} > CREATE TABLE IF NOT EXISTS `COLUMNS_V2` ( `CD_ID` bigint(20) NOT NULL, `COMMENT` varchar(256) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `COLUMN_NAME` varchar(1000) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, `TYPE_NAME` varchar(4000) DEFAULT NULL, `INTEGER_IDX` int(11) NOT NULL, PRIMARY KEY (`CD_ID`,`COLUMN_NAME`), KEY `COLUMNS_V2_N49` (`CD_ID`), CONSTRAINT `COLUMNS_V2_FK1` FOREIGN KEY (`CD_ID`) REFERENCES `CDS` (`CD_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 > Error: Specified key was too long; max key length is 767 bytes (state=42000,code=1071) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)