[jira] [Updated] (HIVE-2011) upgrade-0.6.0.mysql.sql script attempts to increase size of PK COLUMNS.TYPE_NAME to 4000

2011-03-24 Thread Yuanjun Li (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-2011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yuanjun Li updated HIVE-2011:
-

Attachment: HIVE-2011.postgres.1.patch

 upgrade-0.6.0.mysql.sql script attempts to increase size of PK 
 COLUMNS.TYPE_NAME to 4000
 

 Key: HIVE-2011
 URL: https://issues.apache.org/jira/browse/HIVE-2011
 Project: Hive
  Issue Type: Bug
  Components: Metastore
Affects Versions: 0.6.0
Reporter: Carl Steinbach
Assignee: Carl Steinbach
Priority: Blocker
 Fix For: 0.7.0

 Attachments: HIVE-2011.1.patch.txt, HIVE-2011.2.patch.txt, 
 HIVE-2011.2.patch.txt, HIVE-2011.3.patch.txt, HIVE-2011.4.patch.txt, 
 HIVE-2011.5.patch.txt, HIVE-2011.6.patch.txt, HIVE-2011.postgres.1.patch


 {code}
 # mysql flumenewresearch  upgrade-0.6.0.mysql.sql 
 ERROR 1071 (42000) at line 16: Specified key was too long; max key length is 
 767 bytes
 {code}
 Here's the cause of the problem from upgrade-0.6.0.mysql.sql:
 {code}
 ...
 ALTER TABLE `COLUMNS` MODIFY `TYPE_NAME` VARCHAR(4000);
 ...
 ALTER TABLE `COLUMNS` DROP PRIMARY KEY;
 ALTER TABLE `COLUMNS` ADD PRIMARY KEY (`SD_ID`, `COLUMN_NAME`);
 ...
 {code}
 We need to make sure that the PK on COLUMNS.TYPE_NAME is dropped before the 
 size of the column is bumped to 4000.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] Updated: (HIVE-2011) upgrade-0.6.0.mysql.sql script attempts to increase size of PK COLUMNS.TYPE_NAME to 4000

2011-03-18 Thread Carl Steinbach (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-2011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carl Steinbach updated HIVE-2011:
-

Attachment: HIVE-2011.2.patch.txt

 upgrade-0.6.0.mysql.sql script attempts to increase size of PK 
 COLUMNS.TYPE_NAME to 4000
 

 Key: HIVE-2011
 URL: https://issues.apache.org/jira/browse/HIVE-2011
 Project: Hive
  Issue Type: Bug
  Components: Metastore
Affects Versions: 0.6.0
Reporter: Carl Steinbach
Assignee: Carl Steinbach
Priority: Blocker
 Fix For: 0.7.0

 Attachments: HIVE-2011.1.patch.txt, HIVE-2011.2.patch.txt, 
 HIVE-2011.2.patch.txt


 {code}
 # mysql flumenewresearch  upgrade-0.6.0.mysql.sql 
 ERROR 1071 (42000) at line 16: Specified key was too long; max key length is 
 767 bytes
 {code}
 Here's the cause of the problem from upgrade-0.6.0.mysql.sql:
 {code}
 ...
 ALTER TABLE `COLUMNS` MODIFY `TYPE_NAME` VARCHAR(4000);
 ...
 ALTER TABLE `COLUMNS` DROP PRIMARY KEY;
 ALTER TABLE `COLUMNS` ADD PRIMARY KEY (`SD_ID`, `COLUMN_NAME`);
 ...
 {code}
 We need to make sure that the PK on COLUMNS.TYPE_NAME is dropped before the 
 size of the column is bumped to 4000.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] Updated: (HIVE-2011) upgrade-0.6.0.mysql.sql script attempts to increase size of PK COLUMNS.TYPE_NAME to 4000

2011-03-18 Thread Carl Steinbach (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-2011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carl Steinbach updated HIVE-2011:
-

Attachment: HIVE-2011.3.patch.txt

HIVE-2011.3.patch.txt: 

* Fixed errors in Derby schema scripts caused by accidentally picking up wrong 
DataNucleus (and wrong IdentifierFactory) during original schema generation run.
* Added a couple usage notes to the Derby and MySQL READMEs related to the ij 
and mysqldump utilities.

Testing:
# Created Derby and MySQL schemas for 0.3.0 through 0.7.0 by starting Hive with 
autoCreateSchema=true.
# Applied hive-schema-x.y.z.xxx.sql scripts to each of the previously created 
DBs. Verified that these scripts complete without error, and that the resulting 
DB schemas contain all tables.
# Applied the upgrade scripts to validated 0.5.0 and 0.6.0 DBs for Derby and 
MySQL, and verified that all scripts complete without error.
# Validated the upgraded DBs by running Hive against the upgraded DB schema 
with datanucleus.autoCreateSchema=false and datanucleus.validateSchema=true




 upgrade-0.6.0.mysql.sql script attempts to increase size of PK 
 COLUMNS.TYPE_NAME to 4000
 

 Key: HIVE-2011
 URL: https://issues.apache.org/jira/browse/HIVE-2011
 Project: Hive
  Issue Type: Bug
  Components: Metastore
Affects Versions: 0.6.0
Reporter: Carl Steinbach
Assignee: Carl Steinbach
Priority: Blocker
 Fix For: 0.7.0

 Attachments: HIVE-2011.1.patch.txt, HIVE-2011.2.patch.txt, 
 HIVE-2011.2.patch.txt, HIVE-2011.3.patch.txt


 {code}
 # mysql flumenewresearch  upgrade-0.6.0.mysql.sql 
 ERROR 1071 (42000) at line 16: Specified key was too long; max key length is 
 767 bytes
 {code}
 Here's the cause of the problem from upgrade-0.6.0.mysql.sql:
 {code}
 ...
 ALTER TABLE `COLUMNS` MODIFY `TYPE_NAME` VARCHAR(4000);
 ...
 ALTER TABLE `COLUMNS` DROP PRIMARY KEY;
 ALTER TABLE `COLUMNS` ADD PRIMARY KEY (`SD_ID`, `COLUMN_NAME`);
 ...
 {code}
 We need to make sure that the PK on COLUMNS.TYPE_NAME is dropped before the 
 size of the column is bumped to 4000.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] Updated: (HIVE-2011) upgrade-0.6.0.mysql.sql script attempts to increase size of PK COLUMNS.TYPE_NAME to 4000

2011-03-18 Thread Carl Steinbach (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-2011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carl Steinbach updated HIVE-2011:
-

Attachment: HIVE-2011.4.patch.txt

HIVE-2011.4.patch.txt:

* Fix capitalization of table names in MySQL schema dumps.

@John: I created these schema's using DataNucleus's schematool utility. I think 
this capitalization issue is actually a bug in DataNucleus.


 upgrade-0.6.0.mysql.sql script attempts to increase size of PK 
 COLUMNS.TYPE_NAME to 4000
 

 Key: HIVE-2011
 URL: https://issues.apache.org/jira/browse/HIVE-2011
 Project: Hive
  Issue Type: Bug
  Components: Metastore
Affects Versions: 0.6.0
Reporter: Carl Steinbach
Assignee: Carl Steinbach
Priority: Blocker
 Fix For: 0.7.0

 Attachments: HIVE-2011.1.patch.txt, HIVE-2011.2.patch.txt, 
 HIVE-2011.2.patch.txt, HIVE-2011.3.patch.txt, HIVE-2011.4.patch.txt


 {code}
 # mysql flumenewresearch  upgrade-0.6.0.mysql.sql 
 ERROR 1071 (42000) at line 16: Specified key was too long; max key length is 
 767 bytes
 {code}
 Here's the cause of the problem from upgrade-0.6.0.mysql.sql:
 {code}
 ...
 ALTER TABLE `COLUMNS` MODIFY `TYPE_NAME` VARCHAR(4000);
 ...
 ALTER TABLE `COLUMNS` DROP PRIMARY KEY;
 ALTER TABLE `COLUMNS` ADD PRIMARY KEY (`SD_ID`, `COLUMN_NAME`);
 ...
 {code}
 We need to make sure that the PK on COLUMNS.TYPE_NAME is dropped before the 
 size of the column is bumped to 4000.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] Updated: (HIVE-2011) upgrade-0.6.0.mysql.sql script attempts to increase size of PK COLUMNS.TYPE_NAME to 4000

2011-03-18 Thread John Sichi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-2011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Sichi updated HIVE-2011:
-

Status: Open  (was: Patch Available)

 upgrade-0.6.0.mysql.sql script attempts to increase size of PK 
 COLUMNS.TYPE_NAME to 4000
 

 Key: HIVE-2011
 URL: https://issues.apache.org/jira/browse/HIVE-2011
 Project: Hive
  Issue Type: Bug
  Components: Metastore
Affects Versions: 0.6.0
Reporter: Carl Steinbach
Assignee: Carl Steinbach
Priority: Blocker
 Fix For: 0.7.0

 Attachments: HIVE-2011.1.patch.txt, HIVE-2011.2.patch.txt, 
 HIVE-2011.2.patch.txt, HIVE-2011.3.patch.txt, HIVE-2011.4.patch.txt, 
 HIVE-2011.5.patch.txt


 {code}
 # mysql flumenewresearch  upgrade-0.6.0.mysql.sql 
 ERROR 1071 (42000) at line 16: Specified key was too long; max key length is 
 767 bytes
 {code}
 Here's the cause of the problem from upgrade-0.6.0.mysql.sql:
 {code}
 ...
 ALTER TABLE `COLUMNS` MODIFY `TYPE_NAME` VARCHAR(4000);
 ...
 ALTER TABLE `COLUMNS` DROP PRIMARY KEY;
 ALTER TABLE `COLUMNS` ADD PRIMARY KEY (`SD_ID`, `COLUMN_NAME`);
 ...
 {code}
 We need to make sure that the PK on COLUMNS.TYPE_NAME is dropped before the 
 size of the column is bumped to 4000.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] Updated: (HIVE-2011) upgrade-0.6.0.mysql.sql script attempts to increase size of PK COLUMNS.TYPE_NAME to 4000

2011-03-18 Thread Carl Steinbach (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-2011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carl Steinbach updated HIVE-2011:
-

Status: Patch Available  (was: Open)

 upgrade-0.6.0.mysql.sql script attempts to increase size of PK 
 COLUMNS.TYPE_NAME to 4000
 

 Key: HIVE-2011
 URL: https://issues.apache.org/jira/browse/HIVE-2011
 Project: Hive
  Issue Type: Bug
  Components: Metastore
Affects Versions: 0.6.0
Reporter: Carl Steinbach
Assignee: Carl Steinbach
Priority: Blocker
 Fix For: 0.7.0

 Attachments: HIVE-2011.1.patch.txt, HIVE-2011.2.patch.txt, 
 HIVE-2011.2.patch.txt, HIVE-2011.3.patch.txt, HIVE-2011.4.patch.txt, 
 HIVE-2011.5.patch.txt, HIVE-2011.6.patch.txt


 {code}
 # mysql flumenewresearch  upgrade-0.6.0.mysql.sql 
 ERROR 1071 (42000) at line 16: Specified key was too long; max key length is 
 767 bytes
 {code}
 Here's the cause of the problem from upgrade-0.6.0.mysql.sql:
 {code}
 ...
 ALTER TABLE `COLUMNS` MODIFY `TYPE_NAME` VARCHAR(4000);
 ...
 ALTER TABLE `COLUMNS` DROP PRIMARY KEY;
 ALTER TABLE `COLUMNS` ADD PRIMARY KEY (`SD_ID`, `COLUMN_NAME`);
 ...
 {code}
 We need to make sure that the PK on COLUMNS.TYPE_NAME is dropped before the 
 size of the column is bumped to 4000.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] Updated: (HIVE-2011) upgrade-0.6.0.mysql.sql script attempts to increase size of PK COLUMNS.TYPE_NAME to 4000

2011-03-18 Thread Carl Steinbach (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-2011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carl Steinbach updated HIVE-2011:
-

Attachment: HIVE-2011.6.patch.txt

HIVE-2011.6.patch.txt:

* Fix identifier capitalization issues in MySQL schema scripts.


 upgrade-0.6.0.mysql.sql script attempts to increase size of PK 
 COLUMNS.TYPE_NAME to 4000
 

 Key: HIVE-2011
 URL: https://issues.apache.org/jira/browse/HIVE-2011
 Project: Hive
  Issue Type: Bug
  Components: Metastore
Affects Versions: 0.6.0
Reporter: Carl Steinbach
Assignee: Carl Steinbach
Priority: Blocker
 Fix For: 0.7.0

 Attachments: HIVE-2011.1.patch.txt, HIVE-2011.2.patch.txt, 
 HIVE-2011.2.patch.txt, HIVE-2011.3.patch.txt, HIVE-2011.4.patch.txt, 
 HIVE-2011.5.patch.txt, HIVE-2011.6.patch.txt


 {code}
 # mysql flumenewresearch  upgrade-0.6.0.mysql.sql 
 ERROR 1071 (42000) at line 16: Specified key was too long; max key length is 
 767 bytes
 {code}
 Here's the cause of the problem from upgrade-0.6.0.mysql.sql:
 {code}
 ...
 ALTER TABLE `COLUMNS` MODIFY `TYPE_NAME` VARCHAR(4000);
 ...
 ALTER TABLE `COLUMNS` DROP PRIMARY KEY;
 ALTER TABLE `COLUMNS` ADD PRIMARY KEY (`SD_ID`, `COLUMN_NAME`);
 ...
 {code}
 We need to make sure that the PK on COLUMNS.TYPE_NAME is dropped before the 
 size of the column is bumped to 4000.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] Updated: (HIVE-2011) upgrade-0.6.0.mysql.sql script attempts to increase size of PK COLUMNS.TYPE_NAME to 4000

2011-03-18 Thread John Sichi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-2011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Sichi updated HIVE-2011:
-

  Resolution: Fixed
Hadoop Flags: [Reviewed]
  Status: Resolved  (was: Patch Available)

Committed to branch and trunk.  Thanks Carl!

p.s. ship it!


 upgrade-0.6.0.mysql.sql script attempts to increase size of PK 
 COLUMNS.TYPE_NAME to 4000
 

 Key: HIVE-2011
 URL: https://issues.apache.org/jira/browse/HIVE-2011
 Project: Hive
  Issue Type: Bug
  Components: Metastore
Affects Versions: 0.6.0
Reporter: Carl Steinbach
Assignee: Carl Steinbach
Priority: Blocker
 Fix For: 0.7.0

 Attachments: HIVE-2011.1.patch.txt, HIVE-2011.2.patch.txt, 
 HIVE-2011.2.patch.txt, HIVE-2011.3.patch.txt, HIVE-2011.4.patch.txt, 
 HIVE-2011.5.patch.txt, HIVE-2011.6.patch.txt


 {code}
 # mysql flumenewresearch  upgrade-0.6.0.mysql.sql 
 ERROR 1071 (42000) at line 16: Specified key was too long; max key length is 
 767 bytes
 {code}
 Here's the cause of the problem from upgrade-0.6.0.mysql.sql:
 {code}
 ...
 ALTER TABLE `COLUMNS` MODIFY `TYPE_NAME` VARCHAR(4000);
 ...
 ALTER TABLE `COLUMNS` DROP PRIMARY KEY;
 ALTER TABLE `COLUMNS` ADD PRIMARY KEY (`SD_ID`, `COLUMN_NAME`);
 ...
 {code}
 We need to make sure that the PK on COLUMNS.TYPE_NAME is dropped before the 
 size of the column is bumped to 4000.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] Updated: (HIVE-2011) upgrade-0.6.0.mysql.sql script attempts to increase size of PK COLUMNS.TYPE_NAME to 4000

2011-03-16 Thread Carl Steinbach (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-2011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carl Steinbach updated HIVE-2011:
-

Attachment: HIVE-2011.2.patch.txt

 upgrade-0.6.0.mysql.sql script attempts to increase size of PK 
 COLUMNS.TYPE_NAME to 4000
 

 Key: HIVE-2011
 URL: https://issues.apache.org/jira/browse/HIVE-2011
 Project: Hive
  Issue Type: Bug
  Components: Metastore
Affects Versions: 0.6.0
Reporter: Carl Steinbach
Assignee: Carl Steinbach
Priority: Blocker
 Fix For: 0.7.0

 Attachments: HIVE-2011.1.patch.txt, HIVE-2011.2.patch.txt


 {code}
 # mysql flumenewresearch  upgrade-0.6.0.mysql.sql 
 ERROR 1071 (42000) at line 16: Specified key was too long; max key length is 
 767 bytes
 {code}
 Here's the cause of the problem from upgrade-0.6.0.mysql.sql:
 {code}
 ...
 ALTER TABLE `COLUMNS` MODIFY `TYPE_NAME` VARCHAR(4000);
 ...
 ALTER TABLE `COLUMNS` DROP PRIMARY KEY;
 ALTER TABLE `COLUMNS` ADD PRIMARY KEY (`SD_ID`, `COLUMN_NAME`);
 ...
 {code}
 We need to make sure that the PK on COLUMNS.TYPE_NAME is dropped before the 
 size of the column is bumped to 4000.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] Updated: (HIVE-2011) upgrade-0.6.0.mysql.sql script attempts to increase size of PK COLUMNS.TYPE_NAME to 4000

2011-03-16 Thread Carl Steinbach (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-2011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carl Steinbach updated HIVE-2011:
-

Status: Patch Available  (was: Open)

Updated the patch with more extensive instructions and official schemas for 
Hive 0.3.0 through 0.7.0


 upgrade-0.6.0.mysql.sql script attempts to increase size of PK 
 COLUMNS.TYPE_NAME to 4000
 

 Key: HIVE-2011
 URL: https://issues.apache.org/jira/browse/HIVE-2011
 Project: Hive
  Issue Type: Bug
  Components: Metastore
Affects Versions: 0.6.0
Reporter: Carl Steinbach
Assignee: Carl Steinbach
Priority: Blocker
 Fix For: 0.7.0

 Attachments: HIVE-2011.1.patch.txt, HIVE-2011.2.patch.txt


 {code}
 # mysql flumenewresearch  upgrade-0.6.0.mysql.sql 
 ERROR 1071 (42000) at line 16: Specified key was too long; max key length is 
 767 bytes
 {code}
 Here's the cause of the problem from upgrade-0.6.0.mysql.sql:
 {code}
 ...
 ALTER TABLE `COLUMNS` MODIFY `TYPE_NAME` VARCHAR(4000);
 ...
 ALTER TABLE `COLUMNS` DROP PRIMARY KEY;
 ALTER TABLE `COLUMNS` ADD PRIMARY KEY (`SD_ID`, `COLUMN_NAME`);
 ...
 {code}
 We need to make sure that the PK on COLUMNS.TYPE_NAME is dropped before the 
 size of the column is bumped to 4000.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] Updated: (HIVE-2011) upgrade-0.6.0.mysql.sql script attempts to increase size of PK COLUMNS.TYPE_NAME to 4000

2011-03-07 Thread Carl Steinbach (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-2011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carl Steinbach updated HIVE-2011:
-

Attachment: HIVE-2011.1.patch.txt

 upgrade-0.6.0.mysql.sql script attempts to increase size of PK 
 COLUMNS.TYPE_NAME to 4000
 

 Key: HIVE-2011
 URL: https://issues.apache.org/jira/browse/HIVE-2011
 Project: Hive
  Issue Type: Bug
  Components: Metastore
Affects Versions: 0.6.0
Reporter: Carl Steinbach
Assignee: Carl Steinbach
Priority: Blocker
 Fix For: 0.7.0

 Attachments: HIVE-2011.1.patch.txt


 {code}
 # mysql flumenewresearch  upgrade-0.6.0.mysql.sql 
 ERROR 1071 (42000) at line 16: Specified key was too long; max key length is 
 767 bytes
 {code}
 Here's the cause of the problem from upgrade-0.6.0.mysql.sql:
 {code}
 ...
 ALTER TABLE `COLUMNS` MODIFY `TYPE_NAME` VARCHAR(4000);
 ...
 ALTER TABLE `COLUMNS` DROP PRIMARY KEY;
 ALTER TABLE `COLUMNS` ADD PRIMARY KEY (`SD_ID`, `COLUMN_NAME`);
 ...
 {code}
 We need to make sure that the PK on COLUMNS.TYPE_NAME is dropped before the 
 size of the column is bumped to 4000.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] Updated: (HIVE-2011) upgrade-0.6.0.mysql.sql script attempts to increase size of PK COLUMNS.TYPE_NAME to 4000

2011-03-07 Thread Carl Steinbach (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-2011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carl Steinbach updated HIVE-2011:
-

Status: Patch Available  (was: Open)

This is a patch for HIVE-2011 and HIVE-2010:

* Change the name of the upgrade scripts from 'upgrade-x.y.z.dbname.sql' to 
'upgrade-x.y.z-to-a.b.c.dbname.sql'
* Splits the contents of the upgrade-x.y.z.dbname.sql files into individual 
SQL files corresponding to each Hive ticket.
* Fixes HIVE-2011 by rearranging the order of DDL statements in 
004-HIVE-1364.dbname.sql


 upgrade-0.6.0.mysql.sql script attempts to increase size of PK 
 COLUMNS.TYPE_NAME to 4000
 

 Key: HIVE-2011
 URL: https://issues.apache.org/jira/browse/HIVE-2011
 Project: Hive
  Issue Type: Bug
  Components: Metastore
Affects Versions: 0.6.0
Reporter: Carl Steinbach
Assignee: Carl Steinbach
Priority: Blocker
 Fix For: 0.7.0

 Attachments: HIVE-2011.1.patch.txt


 {code}
 # mysql flumenewresearch  upgrade-0.6.0.mysql.sql 
 ERROR 1071 (42000) at line 16: Specified key was too long; max key length is 
 767 bytes
 {code}
 Here's the cause of the problem from upgrade-0.6.0.mysql.sql:
 {code}
 ...
 ALTER TABLE `COLUMNS` MODIFY `TYPE_NAME` VARCHAR(4000);
 ...
 ALTER TABLE `COLUMNS` DROP PRIMARY KEY;
 ALTER TABLE `COLUMNS` ADD PRIMARY KEY (`SD_ID`, `COLUMN_NAME`);
 ...
 {code}
 We need to make sure that the PK on COLUMNS.TYPE_NAME is dropped before the 
 size of the column is bumped to 4000.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] Updated: (HIVE-2011) upgrade-0.6.0.mysql.sql script attempts to increase size of PK COLUMNS.TYPE_NAME to 4000

2011-03-07 Thread John Sichi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-2011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Sichi updated HIVE-2011:
-

Status: Open  (was: Patch Available)

 upgrade-0.6.0.mysql.sql script attempts to increase size of PK 
 COLUMNS.TYPE_NAME to 4000
 

 Key: HIVE-2011
 URL: https://issues.apache.org/jira/browse/HIVE-2011
 Project: Hive
  Issue Type: Bug
  Components: Metastore
Affects Versions: 0.6.0
Reporter: Carl Steinbach
Assignee: Carl Steinbach
Priority: Blocker
 Fix For: 0.7.0

 Attachments: HIVE-2011.1.patch.txt


 {code}
 # mysql flumenewresearch  upgrade-0.6.0.mysql.sql 
 ERROR 1071 (42000) at line 16: Specified key was too long; max key length is 
 767 bytes
 {code}
 Here's the cause of the problem from upgrade-0.6.0.mysql.sql:
 {code}
 ...
 ALTER TABLE `COLUMNS` MODIFY `TYPE_NAME` VARCHAR(4000);
 ...
 ALTER TABLE `COLUMNS` DROP PRIMARY KEY;
 ALTER TABLE `COLUMNS` ADD PRIMARY KEY (`SD_ID`, `COLUMN_NAME`);
 ...
 {code}
 We need to make sure that the PK on COLUMNS.TYPE_NAME is dropped before the 
 size of the column is bumped to 4000.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira