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

Syntax error in the MySQL metastore schema definition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 2.3.0
    • Metastore
    • None

    Description

      The MySQL metastore definition metastore/scripts/upgrade/mysql/hive-schema-2.2.0.mysql.sql contains a syntax error for the table NOTIFICATION_LOG:

      CREATE TABLE IF NOT EXISTS `NOTIFICATION_LOG`
      (
          `NL_ID` BIGINT(20) NOT NULL,
          `EVENT_ID` BIGINT(20) NOT NULL,
          `EVENT_TIME` INT(11) NOT NULL,
          `EVENT_TYPE` varchar(32) NOT NULL,
          `DB_NAME` varchar(128),
          `TBL_NAME` varchar(128),
          `MESSAGE` longtext,
          `MESSAGE_FORMAT` varchar(16)
          PRIMARY KEY (`NL_ID`)
      ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
      

      Notice a comma is missing after `MESSAGE_FORMAT` varchar(16).
      This got introduced through HIVE-10562.

      Attachments

        1. HIVE-15930.patch
          1.0 kB
          Deepesh Khandelwal

        Issue Links

          Activity

            People

              deepesh Deepesh Khandelwal
              deepesh Deepesh Khandelwal
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: