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

Notification_sequence initialization using SQL statement which is compatible with Mysql 5.1

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • HiveServer2
    • None

    Description

      Since a lot of people are still using hive with 5.1 mysql as the rdbms for metastore, it will be helpful to have the initialization statement introduced as part of HIVE-16886 for mysql to be friendlier to these older versions.

      INSERT INTO `NOTIFICATION_SEQUENCE` (`NNI_ID`, `NEXT_EVENT_ID`) SELECT * from (select 1 as `NNI_ID`, 1 as `NOTIFICATION_SEQUENCE`) a WHERE (select count from `NOTIFICATION_SEQUENCE`) = 0;

      Attachments

        1. HIVE-17614.0.patch
          2 kB
          Anishek Agarwal

        Activity

          People

            anishek Anishek Agarwal
            anishek Anishek Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: