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

Rogue SQL statement in an upgrade SQL file for oracle.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • None
    • None

    Description

      metastore/scripts/upgrade/oracle/033-HIVE-12892.oracle.sql has

      VERSION_COMMENT VARCHAR(255) NOT NULL
      CREATE TABLE CHANGE_VERSION (
      CHANGE_VERSION_ID NUMBER NOT NULL,
      VERSION NUMBER NOT NULL,
      TOPIC VARCHAR(255) NOT NULL
      );
      ALTER TABLE CHANGE_VERSION ADD CONSTRAINT CHANGE_VERSION_PK PRIMARY KEY (CHANGE_VERSION_ID);
      CREATE UNIQUE INDEX UNIQUE_CHANGE_VERSION ON CHANGE_VERSION (TOPIC);

      The first line appears to be a typo and should not really be there. I noticed that in the METASTORE-Test precommit builds.

      Attachments

        1. HIVE-13048.patch
          0.4 kB
          Naveen Gangam

        Activity

          People

            ngangam Naveen Gangam
            ngangam Naveen Gangam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: