Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.0
-
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;