You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by "saihemanth-cloudera (via GitHub)" <gi...@apache.org> on 2023/09/07 21:21:21 UTC

[GitHub] [hive] saihemanth-cloudera commented on a diff in pull request #4569: HIVE-27499: Include optional db/table names in the NotificationEvent …

saihemanth-cloudera commented on code in PR #4569:
URL: https://github.com/apache/hive/pull/4569#discussion_r1319129748


##########
standalone-metastore/metastore-server/src/main/sql/derby/hive-schema-4.0.0-beta-1.derby.sql:
##########
@@ -189,6 +189,8 @@ CREATE TABLE "APP"."NOTIFICATION_LOG" (
 
 CREATE UNIQUE INDEX "APP"."NOTIFICATION_LOG_EVENT_ID" ON "APP"."NOTIFICATION_LOG" ("EVENT_ID");
 
+CREATE UNIQUE INDEX "APP"."NOTIFICATION_LOG_UNIQUE_DB" ON "APP"."NOTIFICATION_LOG" ("DB_NAME", "EVENT_ID");

Review Comment:
   Both indices are required. There can be two different types of frequent queries in this table.
   1) provided eventId, fetch all the events greater than the eventId.
   2) provided eventId, dbName, table, fetch all the events of this table greater than the eventId.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org