Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-2011

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.6.0
    • 0.7.0
    • Metastore
    • None
    • Reviewed

    Description

      # 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
      

      Here's the cause of the problem from upgrade-0.6.0.mysql.sql:

      ...
      ALTER TABLE `COLUMNS` MODIFY `TYPE_NAME` VARCHAR(4000);
      ...
      ALTER TABLE `COLUMNS` DROP PRIMARY KEY;
      ALTER TABLE `COLUMNS` ADD PRIMARY KEY (`SD_ID`, `COLUMN_NAME`);
      ...
      

      We need to make sure that the PK on COLUMNS.TYPE_NAME is dropped before the size of the column is bumped to 4000.

      Attachments

        1. HIVE-2011.postgres.1.patch
          79 kB
          Yuanjun Li
        2. HIVE-2011.6.patch.txt
          200 kB
          Carl Steinbach
        3. HIVE-2011.5.patch.txt
          200 kB
          Carl Steinbach
        4. HIVE-2011.4.patch.txt
          202 kB
          Carl Steinbach
        5. HIVE-2011.3.patch.txt
          202 kB
          Carl Steinbach
        6. HIVE-2011.2.patch.txt
          201 kB
          Carl Steinbach
        7. HIVE-2011.2.patch.txt
          202 kB
          Carl Steinbach
        8. HIVE-2011.1.patch.txt
          45 kB
          Carl Steinbach

        Issue Links

          Activity

            People

              cwsteinbach Carl Steinbach
              cwsteinbach Carl Steinbach
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: