Hive
  1. Hive
  2. HIVE-3999

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.11.0
    • Component/s: Metastore
    • Labels:
      None
    • Hadoop Flags:
      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.

      1. mysql_upgrade_issue.patch
        0.8 kB
        Jarek Jarcec Cecho

        Issue Links

          Activity

            People

            • Assignee:
              Jarek Jarcec Cecho
              Reporter:
              Jarek Jarcec Cecho
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development