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

hive-schema-0.13.0.postgres.sql doesn't work

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.12.0, 0.13.0
    • Fix Version/s: 0.12.0
    • Component/s: None
    • Labels:
      None

      Description

      hive-schema-0.13.0.postgres.sql doesn't work. In PostgreSQL, if we double quote keyword (colmn name, table name etc ), those names are treated case sensitively. But in the script, there is a non double quoted table name and column anme although those are double quoted at the definition.

      CREATE TABLE "VERSION" (
        "VER_ID" bigint,
        "SCHEMA_VERSION" character varying(127) NOT NULL,
        "COMMENT" character varying(255) NOT NULL,
        PRIMARY KEY ("VER_ID")
      );
      
      INSERT INTO VERSION (VER_ID, SCHEMA_VERSION, VERSION_COMMENT) VALUES (1, '0.13.0', 'Hive release version 0.13.0');
      

      Also, the definition above defines column "COMMENT" but I think it should be named "VERSION_COMMENT".

        Attachments

        1. HIVE-5374.patch.1
          1.0 kB
          Kousuke Saruta
        2. HIVE-5374.patch.2
          4 kB
          Kousuke Saruta
        3. HIVE-5374.1.patch
          4 kB
          Kousuke Saruta

          Issue Links

            Activity

              People

              • Assignee:
                sarutak Kousuke Saruta
                Reporter:
                sarutak Kousuke Saruta
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: