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

Mysql metastore upgrade script will end up with different schema than the full schema load

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.11.0
    • Metastore
    • None
    • Reviewed

    Description

      I've noticed that the file hive-schema-0.10.0.mysql.sql is creating table SDS with following column:

        `IS_STOREDASSUBDIRECTORIES` bit(1) NOT NULL,
      

      However the upgrade script 011-HIVE-3649.mysql.sql will create the column differently:

      ALTER TABLE `SDS` ADD `IS_STOREDASSUBDIRECTORIES` bit(1) ;
      

      Thus user will get slightly different schema each time - once with "NOT NULL" and secondly with "NULL" definition.

      Attachments

        1. mysql_upgrade_issue.patch
          0.8 kB
          Jarek Jarcec Cecho

        Issue Links

          Activity

            People

              jarcec Jarek Jarcec Cecho
              jarcec Jarek Jarcec Cecho
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: