Skip to content

Commit

Permalink
HIVE-23033:MSSQL metastore schema init script doesn't initialize NOTI…
Browse files Browse the repository at this point in the history
…FICATION_SEQUENCE (David Lavati via Naveen Gangam)
  • Loading branch information
nrg4878 committed Mar 20, 2020
1 parent 0571341 commit 5ed2ec0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,8 @@ CREATE TABLE NOTIFICATION_SEQUENCE

ALTER TABLE NOTIFICATION_SEQUENCE ADD CONSTRAINT NOTIFICATION_SEQUENCE_PK PRIMARY KEY (NNI_ID);

INSERT INTO NOTIFICATION_SEQUENCE (NNI_ID, NEXT_EVENT_ID) SELECT 1,1 WHERE NOT EXISTS (SELECT NEXT_EVENT_ID FROM NOTIFICATION_SEQUENCE);

-- Tables to manage resource plans.

CREATE TABLE WM_RESOURCEPLAN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ END;
EXEC #DROP_DEFAULT_CONSTRAINT "PARTITION_PARAMS", "PARAM_VALUE";
ALTER TABLE "PARTITION_PARAMS" ALTER COLUMN "PARAM_VALUE" varchar(max);

-- HIVE-23033
INSERT INTO NOTIFICATION_SEQUENCE (NNI_ID, NEXT_EVENT_ID) SELECT 1,1 WHERE NOT EXISTS (SELECT NEXT_EVENT_ID FROM NOTIFICATION_SEQUENCE);

-- These lines need to be last. Insert any changes above.
UPDATE VERSION SET SCHEMA_VERSION='3.2.0', VERSION_COMMENT='Hive release version 3.2.0' where VER_ID=1;
Expand Down

0 comments on commit 5ed2ec0

Please sign in to comment.